code: protected boolean isValidRequestedPath(String requestedPath) {
  
  		boolean result = true;
  		if (!this.jawrConfig.isDebugModeOn() && requestedPath.startsWith(JawrConstant.WEB_INF_DIR_PREFIX)
  				|| requestedPath.startsWith(JawrConstant.META_INF_DIR_PREFIX)) {
  			result = false;
  		} else {
  			// If it's not a generated path check the extension file
  			if (this.jawrConfig.isDebugModeOn() && !generatorRegistry.isPathGenerated(requestedPath)) {
  				String extension = FileNameUtils.getExtension(requestedPath);
  				if (!extension.toLowerCase().equals(resourceType)) {
  					result = false;
  				}
  			}
  		}
  
  		return result;
  	}
docs: Checks if the path is valid and can be accessed.
  
  @param requestedPath
  the requested path
  @return true if the path is valid and can be accessed.