type.createMethod(newMethodSourceCode, null, true, null);
if (!compilationUnit.getSource().contains("import org.boco.seamwebappgen.annotations.ShowRelationshipAttributesInList"))
compilationUnit.createImport("org.boco.seamwebappgen.annotations.ShowRelationshipAttributesInList", null, null);
compilationUnit.save(null, true);
}
catch (JavaModelException e)
{
e.printStackTrace();
}