public UICommandSetClass (ClassDescriptor descriptor) {
this.instance = descriptor.newInstance();
ClassMethod[] methods = descriptor.getMethods(Command.class);
for (ClassMethod method : methods) {
Command command = method.getAnnotation(Command.class);
String name = "".equals(command.name()) ? method.getName().toLowerCase() : command.name();
this.add( (CMD) new UICommandMethod(this, instance, method, name, command.value()) );
}
}