private void addDefinitions(Class<?> module) {
for (Method def : module.getMethods()) {
Class<?> declaringClass = def.getDeclaringClass();
if (Module.class != declaringClass && Module.class.isAssignableFrom(declaringClass)) {
Bottom bottom = def.getAnnotation(Bottom.class);
if (bottom != null) {
String name = bottom.value();
if (name.equals("")) {
name = def.getName();
}
builder.addBottom(name, def);
} else {