InvocationManager invManager = wscImpl.getInvocationManager();
inv = EJBInvocation.class.cast(invManager.getCurrentInvocation());
Method method = wsUtil.getInvMethod(
(com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context);
inv.setWebServiceMethod(method);
if ( !inv.authorizeWebService(method) ) {
throw new Exception(format(logger.getResourceBundle().getString(LogUtils.CLIENT_UNAUTHORIZED),
method.toString()));
}
} catch(Exception e) {
wsUtil.throwSOAPFaultException(e.getMessage(), context);