private static Decision authorize(final boolean authorized, final String reason,
final Code reasonId, final Map<String, String> resource, final Subject subject,
final String action, final Set<Attribute> environment, final long evaluationTime) {
return createAuthorize(authorized, new Explanation() {
public Code getCode() {
return reasonId;
}