public class DummyPDP implements PolicyDecisionPoint {
public Source evaluate(Source requestSource) {
RequestType request = requestSourceToRequestType(requestSource);
String role = getSubjectRole(request);
DECISION decision = "manager".equals(role) ? DecisionType.DECISION.Permit : DecisionType.DECISION.Deny;
ResponseType response = createResponse(decision);
return responseType2Source(response);
}