public static boolean isUriParamResource(String resource){
  if (resource == null) {
    return false;
  }
  resource=NamingHelper.cleanLeadingAndTrailingNewLineAndChars(resource.toLowerCase());
  if (resource.startsWith("{") && resource.endsWith("}")) {
    return true;
  }
 else {
    return false;
  }
}

public static boolean isUriParamResource ( String resource ) { if ( resource == null ) { return false ; } resource = NamingHelper . cleanLeadingAndTrailingNewLineAndChars ( resource . toLowerCase ( ) ) ; if ( resource . startsWith ( "{" ) && resource . endsWith ( "}" ) ) { return true ; } else { return false ; } }
checks if a resource uri fragment is a uri parameter . uri parameters are defined as { myparameter }
