//Element claimsEle = null;
if (protocol.equals(WSTrustVersion.WS_TRUST_13.getNamespaceURI())){
Element claimsEle = issuedToken.getClaims().getClaimsAsElement();
cs = WSTrustElementFactory.newInstance(WSTrustVersion.WS_TRUST_13.getNamespaceURI()).createClaims(claimsEle);
}else{
RequestSecurityTokenTemplate rstt = issuedToken.getRequestSecurityTokenTemplate();
Element claimsEle = rstt.getClaims().getClaimsAsElement();
cs = WSTrustElementFactory.newInstance(WSTrustVersion.WS_TRUST_10.getNamespaceURI()).createClaims(claimsEle);
}
cs = WSTrustElementFactory.newInstance(WSTrustVersion.getInstance(stsWstProtocol)).createClaims(cs);
} catch (Exception e) {
throw new WebServiceException(e);