Name getContentsMethodName = new Name(ABCConstants.CONSTANT_Qname,
new Nsset(classGen.getProtectedNamespace()), "getContent");
//Create getContents method
classGen.addITraitsMethod(getContentsMethodName, Collections.<Name> emptyList(),
new Name(IASLanguageConstants.Object), Collections.<Object> emptyList(),
false, false, true, bodyInstructionList);
classGen.finishScript();
}