// check that we succeeded in getting the subject identifier
BagAttribute bag = (BagAttribute) (result.getAttributeValue());
if (bag.isEmpty()) {
ArrayList<String> code = new ArrayList<String>();
code.add(Status.STATUS_MISSING_ATTRIBUTE);
Status status = new Status(code, "missing subject-id");
return new EvaluationResult(status);
}
// finally, look for the subject who has the role-mapping defined,
// and if they're the identified subject, add their role