WebResource resource = null;
// 1) first "dev" resources if enabled (to override everything else)
File file = DevModeResources.getFileIfOnFileSystem(path);
if (file != null) {
resource = new FileWebResource(file, path, mimeSupport.guessMimeTypeFromPath(file.getName()), false);
log.trace("Found dev-mode resource: {}", resource);
}
// 2) second, look at "ordinary" resources, but only if devResource did not hit anything
if (resource == null) {