try{
msg.getSOAPBody();
msg.getSOAPHeader();
context.setConfigType(MessageConstants.NOT_OPTIMIZED);
}catch(SOAPException ex){
throw new AuthException(ex.getMessage());
}
}
SecurityAnnotator.secureMessage(context);
} catch (XWSSecurityException xwsse) {
xwsse.printStackTrace();
throw new AuthException(xwsse.getMessage());
}
}