GS-11324
Refactored duplicated code in subclasses  into single impl at base class

git-svn-id: svn://pc-lab14/SVN/xap/trunk/openspaces@152129 eb64e737-3616-4df0-8941-5ee2ae88103d