class AMIdentityMembershipCondition extends EntitlementConditionAdaptor {

    @Override
    public ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String, Set<String>> env)
            throws EntitlementException {

        String subjectPrincipal = SubjectUtils.getPrincipalId(subject);
        if (debug.messageEnabled()) {
            debug.message("At AMIdentityMembershipCondition.evaluate(): entering, names:" + amIdentityName);
            debug.message("At AMIdentityMembershipCondition.evaluate(): subjectPrincipal:" + subjectPrincipal);
        }
        boolean isMember = false;
        if (subjectPrincipal != null && !subjectPrincipal.isEmpty()) {
            isMember = isMember(subjectPrincipal);
        } else {
            debug.message("At AMIdentityMembershipCondition.evaluate(): subjectPrincipal is null or empty");
        }
        return new ConditionDecision(isMember, Collections.<String, Set<String>>emptyMap());
    }

    public  AMIdentityMembershipCondition();
      AMIdentityMembershipCondition(Debug debug, CoreWrapper coreWrapper);

}