private String extractPath(final String uri){
  return DefaultWildcardStreamLocator.stripQueryPath(uri.replace(PREFIX,StringUtils.EMPTY));
}

private String extractPath ( final String uri ) { return DefaultWildcardStreamLocator . stripQueryPath ( uri . replace ( PREFIX , StringUtils . EMPTY ) ) ; }
replaces the protocol specific prefix and removes the query path if it exist , since it should not be accepted .
