gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/client/GeodeClient.java
@SuppressWarnings({ "unchecked", "rawtypes" })
	private <K,V> Region<K,V> createRegion(String regionName)
	{
		if(regionName.startsWith("/"))
			regionName = regionName.substring(1); //remove prefix
		
	
		
		CacheListenerBridge<K, V> listener = (CacheListenerBridge)this.listenerMap.get(regionName);
		
		if(listener != null)
		{
			ClientRegionFactory<K, V> listenerRegionFactory = null;
			
			if(this.cachingProxy)
				listenerRegionFactory = this.clientCache.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY);	
			else
				listenerRegionFactory = this.clientCache.createClientRegionFactory(ClientRegionShortcut.PROXY);
			
			listenerRegionFactory.addCacheListener((CacheListener)listener);
			
			Region<K,V> region = listenerRegionFactory.create(regionName);
			
			region.registerInterestRegex(".*");
			return region;
			
		}
		
		if(this.cachingProxy)
			return (Region<K,V>)this.cachingRegionfactory.create(regionName);
		else
			return (Region<K,V>)this.proxyRegionfactory.create(regionName);
		
		
	}
@SuppressWarnings({ "unchecked", "rawtypes" })
	private <K,V> Region<K,V> createRegion(String regionName)
	{
		if(regionName.startsWith("/"))
			regionName = regionName.substring(1); //remove prefix
		
	
		
		CacheListenerBridge<K, V> listener = (CacheListenerBridge)this.listenerMap.get(regionName);
		
		if(listener != null)
		{
			ClientRegionFactory<K, V> listenerRegionFactory = null;
			
			if(this.cachingProxy)
				listenerRegionFactory = this.clientCache.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY);	
			else
				listenerRegionFactory = this.clientCache.createClientRegionFactory(ClientRegionShortcut.PROXY);
			
			listenerRegionFactory.addCacheListener((CacheListener)listener);
			
			Region<K,V> region = listenerRegionFactory.create(regionName);
			
			region.registerInterestRegex(".*");
			return region;
			
		}
		
		if(this.cachingProxy)
			return (Region<K,V>)this.cachingRegionfactory.create(regionName);
		else
			return (Region<K,V>)this.proxyRegionfactory.create(regionName);
		
		
	}
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private < K , V > Region < K , V > createRegion ( String regionName ) { if ( regionName . startsWith ( "/" ) ) regionName = regionName . substring ( 1 ) ; //remove prefix CacheListenerBridge < K , V > listener = ( CacheListenerBridge ) this . listenerMap . get ( regionName ) ; if ( listener != null ) { ClientRegionFactory < K , V > listenerRegionFactory = null ; if ( this . cachingProxy ) listenerRegionFactory = this . clientCache . createClientRegionFactory ( ClientRegionShortcut . CACHING_PROXY ) ; else listenerRegionFactory = this . clientCache . createClientRegionFactory ( ClientRegionShortcut . PROXY ) ; listenerRegionFactory . addCacheListener ( ( CacheListener ) listener ) ; Region < K , V > region = listenerRegionFactory . create ( regionName ) ; region . registerInterestRegex ( ".*" ) ; return region ; } if ( this . cachingProxy ) return ( Region < K , V > ) this . cachingRegionfactory . create ( regionName ) ; else return ( Region < K , V > ) this . proxyRegionfactory . create ( regionName ) ; }
------------------------------------------------
------------------------------------------------