}
}
if (ctx == null) {
try {
SCTokenConfiguration config = new DefaultSCTokenConfiguration(wsscVer.getNamespaceURI(),
(SecureConversationToken) tok, tubeConfig.getWSDLPort(), tubeConfig.getBinding(),
this, packet, addVer, scClientAssertion, super.next);
ctx = itm.createIssuedTokenContext(config, packet.endpointAddress.toString());
itm.getIssuedToken(ctx);
issuedTokenContextMap.put(tok.getTokenId(), ctx);
//PolicyID to sctID map
SCTokenConfiguration sctConfig = (SCTokenConfiguration) ctx.getSecurityPolicy().get(0);
scPolicyIDtoSctIdMap.put(tok.getTokenId(), sctConfig.getTokenId());
} catch (WSTrustException se) {
log.log(Level.SEVERE,
LogStringsMessages.WSSTUBE_0035_ERROR_ISSUEDTOKEN_CREATION(), se);
throw new WebServiceException(LogStringsMessages.WSSTUBE_0035_ERROR_ISSUEDTOKEN_CREATION(), se);
}