// Class<?> clazz = scopeFactoryLookup.value();
// WeakHashMap.put(clazz.getClassLoader(), new SoftMap())
// SoftValueHashMap.put(clazz.getName(), instance)
// If this is done, it should be moved to a common helper class
// that does generic construction from a factory given on the meta annotations
ScopeFactory scopeFactory = scopeFactoryLookup.value().newInstance();
return scopeFactory.create(annotation);
}
else
{
// todo - annotation.value();
return createScopeKey(annotation.getClass().getSimpleName(), annotation.toString());