public static AbstractDeploymentDescriptor getDeploymentDescriptor(IProject project) {
IModelProvider mp = ModelProviderManager.getModelProvider(project);
Object obj = mp.getModelObject();
if (obj instanceof org.eclipse.jst.j2ee.webapplication.WebApp) {
return (new WebJ2EEDeploymentDescriptor((org.eclipse.jst.j2ee.webapplication.WebApp) obj));
}
else if (obj instanceof org.eclipse.jst.javaee.web.WebApp) {
return (new WebJavaEEDeploymentDescriptor((org.eclipse.jst.javaee.web.WebApp) obj));
}
else if (obj instanceof org.eclipse.jst.j2ee.application.Application) {