code: public static boolean isGemFireClient() {
  		GemFireCacheImpl impl = (GemFireCacheImpl) CacheFactory
  				.getAnyInstance();
  		return impl != null && impl.isClient();
  	}
docs: Checks if the current GemFire is a client instance.
  
  @return true if the cache instance is client.