throws MelcoeXacmlException {
if (logger.isDebugEnabled()) {
logger.debug("Building request!");
}
RequestCtx request = null;
// Create the new Request.
// Note that the Environment must be specified using a valid Set, even
// if that Set is empty
try {
request =
new RequestCtx(setupSubjects(subjects),
setupResources(resources, relationshipResolver),
setupAction(actions),
setupEnvironment(environment));
} catch (Exception e) {
logger.error("Error creating request.", e);