private <T> T get(Class<T> type, ExecutionContextImpl executionItem) {
return get(Key.get(type), executionItem);
}
private <T> T get(Key<T> key, ExecutionContextImpl executionItem) {
final ContextProvider oldContextProvider = contextScope.getContextProvider();
contextScope.setContextProvider(contextProvider);
if ((executionItem.getResource() == null) && (executionItem.getPath() != null)) {
executionItem.setPath(currentExecutionContext.getAbsolutePath(executionItem.getPath()));
}