gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/util/GemFireNetworking.java
private static String parseLocatorHost(String locator)
	{
		
		int i = locator.indexOf("[");
		
		if(i > 0)
			return locator.substring(0,i).trim();
		else
			return locator.trim();
	}
private static String parseLocatorHost(String locator)
	{
		
		int i = locator.indexOf("[");
		
		if(i > 0)
			return locator.substring(0,i).trim();
		else
			return locator.trim();
	}
private static String parseLocatorHost ( String locator ) { int i = locator . indexOf ( "[" ) ; if ( i > 0 ) return locator . substring ( 0 , i ) . trim ( ) ; else return locator . trim ( ) ; }
--------------------------------------------------------
--------------------------------------------------------