cf.addInterface(commandInterface);
cf.addField("_commands", array);
BodyBuilder builder = new BodyBuilder();
builder.addln("_commands = (%s[]) $1.toArray(new %<s[0]);", commandInterface.getName());
cf.addConstructor(new Class[]
{ List.class }, null, builder.toString());
}