TypeDeclaration.BODY_DECLARATIONS_PROPERTY);
MethodDeclaration md = ast.newMethodDeclaration();
md.setName(ast.newSimpleName("factory" + capitalize(parameterMethod.getName().toString())));
// Add the "Factory" annotation
MarkerAnnotation factory = ast.newMarkerAnnotation();
factory.setTypeName(ast.newName("Factory"));
md.modifiers().add(factory);
// Make the method public
md.modifiers().addAll(ast.newModifiers(Modifier.PUBLIC | Modifier.STATIC));
ArrayType returnType = ast.newArrayType(ast.newSimpleType(ast.newName("Object")));