this.resourceResolver = resourceResolver;
}
@Override
public Resource get() {
final ExecutionContext executionItem = currentExecutionContext.peek();
if (executionItem.getResource() != null) {
return executionItem.getResource();
} else {
final Resource resource = resourceResolver.getResource(executionItem.getPath());
return ResourceUtil.getValidResourceOrNull(resource);
}
}