private BaseSTSResponse createRenewResponse(final RenewTarget renewTgt, final Entropy serverEntropy, final URI con, final byte[] secret, final RequestedProofToken proofToken, final IssuedTokenContext context, final URI tokenType) throws WSSecureConversationException {
final SecurityTokenReference str = renewTgt.getSecurityTokenReference();
final SessionManager sm = (SessionManager)context.getOtherProperties().get("SessionManager");
String id = null;
final Reference ref = str.getReference();
if (ref.getType().equals("Reference")){
id = ((DirectReference)ref).getURIAttr().toString();
}
final SecurityContextToken token = WSTrustUtil.createSecurityContextToken(wsscEleFac, id);
final RequestedSecurityToken rst = wsscEleFac.createRequestedSecurityToken(token);