String resourceModule = gb.getNameProperty("name");
if (gb.getNameProperty("J2EEApplication") == null
|| gb.getNameProperty("J2EEApplication").equals("null")) {
StringTree treeEnt = (StringTree) entApp
.get("ResourceAdapterModule");
treeEnt.addChild(resourceModule);
} else {
StringTree treeEnt = (StringTree) entApp.get(gb
.getNameProperty("J2EEApplication"));
treeEnt = treeEnt.findNode("ResourceAdapterModule");
treeEnt.addChild(resourceModule);