@SetupCommand
public void setup(final PipeOut out)
{
if (!project.hasFacet(FacesAPIFacet.class))
{
request.fire(new InstallFacets(FacesAPIFacet.class));
if (!project.hasFacet(CDIFacet.class)) {
if (prompt.promptBoolean("Do you also want to install CDI?", true)) {
request.fire(new InstallFacets(CDIFacet.class));
}
}
}
FacesFacet facet = project.getFacet(FacesFacet.class);
if (facet.getFacesServletMappings().isEmpty())