/*
* Make sure we have all the features we need for this to work.
*/
if (!project.hasAllFacets(Arrays.asList(EJBFacet.class, PersistenceFacet.class)))
{
request.fire(new InstallFacets(true, EJBFacet.class, PersistenceFacet.class));
}
if (((targets == null) || (targets.length < 1))
&& (currentResource instanceof JavaResource))
{