GS-8334 Removed repeating if statement.
GS-8334
Removed repeating if statement.

svn path=/trunk/openspaces/; revision=97385


Former-commit-id: 4651371c5009851b62955193335fdc44739a3876
Gigaspaces/xap-openspaces,Gigaspaces/xap-openspaces,Gigaspaces/xap-openspaces