question: public static String decodeEndpointURI ( String endpoint ) { int ind = endpoint . indexOf ( '[' ) ; if ( ind == 0 ) { return null ; } else if ( ind != - 1 ) { return endpoint . substring ( 0 , ind ) ; } return endpoint ; }
target:  This method returns the URI part of the supplied endpoint.