code: public static boolean isJPADeployment(DeploymentUnit unit) {
          unit = DeploymentUtils.getTopDeploymentUnit(unit);
          return unit.getAttachment(MARKER) != null;
      }
docs: return true if the {@link DeploymentUnit} is part of a JPA deployment