MethodDeclaration method = new MethodDeclaration(ModifierSet.PUBLIC, ASTHelper.VOID_TYPE, "main");
method.setModifiers(ModifierSet.addModifier(method.getModifiers(), ModifierSet.STATIC));
ASTHelper.addMember(type, method);
//add a parameter to the method
Parameter param = ASTHelper.createParameter(ASTHelper.createReferenceType("String", 1), "args");
// param.setVarArgs(true);
ASTHelper.addParameter(method, param);
//add a body to the method
BlockStmt block = new BlockStmt();