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 ( ) ; }
--------------------------------------------------------