model.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, project.getName());
try {
IFacetedProject facetedProject = ProjectFacetsManager.create(project);
model.setProperty(IFacetProjectCreationDataModelProperties.FACET_RUNTIME, facetedProject.getPrimaryRuntime());
IDataModelOperation op = new ImportDeploymentPlanOperation(model);
op.execute(new NullProgressMonitor(), null);
} catch (Exception e) {
throw new PartInitException(e.getMessage());
}
try {