public static String decodeEndpointOperation(String endpoint,boolean stripped){
  int ind=endpoint.indexOf('[');
  if (ind != -1) {
    if (stripped) {
      return endpoint.substring(ind + 1,endpoint.length() - 1);
    }
    return endpoint.substring(ind);
  }
  return null;
}

public static String decodeEndpointOperation ( String endpoint , boolean stripped ) { int ind = endpoint . indexOf ( '[' ) ; if ( ind != - 1 ) { if ( stripped ) { return endpoint . substring ( ind + 1 , endpoint . length ( ) - 1 ) ; } return endpoint . substring ( ind ) ; } return null ; }
this method returns the operation part of the supplied endpoint .
