question: public static String stripQueryPath ( final String path ) { return path . replaceFirst ( REGEX_QUERY_PATH , "" ) ; }
target:  Removes the query path from the path which potentially could be treated as a path containing wildcard special characters.