public Object get(String className, Resource resource) throws ClassNotFoundException {
final Key<?> key = classToKeyMapper.getKey(className);
if (key == null) {
throw new ClassNotFoundException("key for class " + className + " not found");
}
ExecutionContextImpl executionItem = new ExecutionContextImpl(resource);
LOG.debug("creating new instance for {} from {}", new Object[] { key.toString(), resource });
return get(key, executionItem);
}