boolean bspCompliant = isWsiBSPCompliant(message);
principal = parseTokenAndCreatePrincipal(child, bspCompliant);
WSS4JTokenConverter.convertToken(message, principal);
}
SecurityContext sc = message.get(SecurityContext.class);
if (sc == null || sc.getUserPrincipal() == null) {
if (subject != null && principal != null) {
message.put(SecurityContext.class,
createSecurityContext(principal, subject));
} else if (principal instanceof WSUsernameTokenPrincipal) {
WSUsernameTokenPrincipal utPrincipal = (WSUsernameTokenPrincipal)principal;