private UICommand createAnnotatedCommand(Method method)
{
Object instance = registry.getServices(method.getDeclaringClass()).get();
Command ann = method.getAnnotation(Command.class);
EnableCommandHandler handler = registry.getServices(ann.enabledHandler()).get();
return new AnnotationCommandAdapter(method, instance, factory, handler);
}
public void addonInitialized(@Observes PreShutdown shutdown)
{