boolean allowByDefault = false;
String optVal = (String)getOption("allowByDefault");
if ((optVal != null) && (optVal.equalsIgnoreCase("true")))
allowByDefault = true;
AuthenticatedUser user = (AuthenticatedUser)msgContext.
getProperty(MessageContext.AUTHUSER);
if (user == null)
throw new AxisFault("Server.NoUser",
"Need to specify a user for authorization!", null, null);
String userID = user.getName();
Handler serviceHandler = msgContext.getServiceHandler();
if (serviceHandler == null)
throw new AxisFault("No target service to authorize for!");