ArrayList<Method> methods = new ArrayList<Method>();
for (int i = 0; classDoc.methods(false) != null
&& i < classDoc.methods(false).length; i++) {
if (isAnnotated(classDoc.methods(false)[i], RequestMapping.class)
&& !ignore(classDoc.methods(false)[i])) {
methods.add(new MethodBuilder().build(new Method(),
classDoc.methods(false)[i], baseUri));
}
}
controller.setMethods(methods);