MavenFacet mavenFacet = factory.create(MavenFacet.class, project);
MavenPluginFacet mavenPluginFacet = factory.create(MavenPluginFacet.class, project);
MetadataFacet metadataFacet = factory.create(MavenMetadataFacet.class, project);
PackagingFacet packagingFacet = factory.create(MavenPackagingFacet.class, project);
DependencyFacet dependencyFacet = factory.create(MavenDependencyFacet.class, project);
ResourceFacet resourceFacet = factory.create(MavenResourceFacet.class, project);
if (!(project.install(mavenFacet)
&& project.install(metadataFacet)
&& project.install(packagingFacet)
&& project.install(dependencyFacet)