code: static String cleanPath( String path ) {
  
  		return path
  				.replaceFirst( "^" + ServletRegistrationComponent.REST_CONTEXT + "/", "/" )
  				.replaceFirst( "^" + ServletRegistrationComponent.WEBSOCKET_CONTEXT + "/", "/" )
  				.replaceFirst( "\\?.*", "" );
  	}
docs: Cleans the path by removing the servlet paths and URL parameters.
  @param path a non-null path
  @return a non-null path