public RequestContext createXACMLRequest(String ejbName, String methodName,
Principal principal, RoleGroup callerRoles) throws Exception
{
String action = methodName;
ActionType actionType = getActionType( action );
RequestContext requestCtx = this.getRequestContext(ejbName, actionType, principal, callerRoles);
if(PicketBoxLogger.LOGGER.isDebugEnabled())
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
requestCtx.marshall(baos);
PicketBoxLogger.LOGGER.debug(new String(baos.toByteArray()));
}
return requestCtx;
}