code: 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;
      }
docs: This method returns the operation part of the supplied endpoint.
  
  @param endpoint The endpoint
  @param stripped Whether brackets should be stripped
  @return The operation