public RootXMLNode getRootXMLNode(Descriptor descriptor) {
if (descriptor instanceof Application) {
Application application = (Application)descriptor;
RootXMLNode node = application.getRootNode(getDeploymentDescriptorPath());
if (node == null) {
node = new WeblogicApplicationNode(application);
application.addRootNode(getDeploymentDescriptorPath(), node);
}
return node;
}
return new WeblogicApplicationNode();
}