while (child != null) {
if (SPConstants.USERNAME_TOKEN.equals(child.getLocalName())) {
UsernameTokenProcessor p = new UsernameTokenProcessor();
try {
final WSUsernameTokenPrincipal princ = p.handleUsernameToken(child,
getCallback(message));
if (princ != null) {
Vector<WSSecurityEngineResult>v = new Vector<WSSecurityEngineResult>();
v.add(0, new WSSecurityEngineResult(WSConstants.UT, princ, null, null, null));
List<Object> results = CastUtils.cast((List)message