class AMIdentityMembershipCondition extends EntitlementConditionAdaptor {

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

        if (debug.messageEnabled()) {
            debug.message("At AMIdentityMembershipCondition.getConditionDecision(): entering, names:" + amIdentityName);
            debug.message("At AMIdentityMembershipCondition.getConditionDecision(): environment.invocatorPrincipalUud:"
                    + env.get(INVOCATOR_PRINCIPAL_UUID));
        }
        boolean isMember = false;
        Set<String> invocatorUuidSet = env.get(INVOCATOR_PRINCIPAL_UUID);
        if (invocatorUuidSet != null && !invocatorUuidSet.isEmpty()) {
            String invocatorUuid = invocatorUuidSet.iterator().next();
            isMember = isMember(invocatorUuid);
        } else {
            debug.message("At AMIdentityMembershipCondition.getConditionDecision(): invocatorUuidSet is null or empty");
        }
        return new ConditionDecision(isMember, Collections.<String, Set<String>>emptyMap());
    }

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

}