}
throw new NoSuchDefinitionException(definitionName);
}
AttributeContext originalContext = getAttributeContext(request);
BasicAttributeContext subContext = new BasicAttributeContext(originalContext);
subContext.inherit(definition);
if (!isPermitted(request, subContext.getRoles())) {
if (LOG.isDebugEnabled()) {
LOG.debug("Access to definition '" + definitionName
+ "' denied. User not in role '"
+ definition.getRoles());
}