public Claims createClaims(Element elem) throws WSTrustException {
return new ClaimsImpl(ClaimsImpl.fromElement(elem));
}
public Claims createClaims(Claims claims) throws WSTrustException {
ClaimsImpl newClaims = new ClaimsImpl();
if (claims != null){
newClaims.setDialect(claims.getDialect());
newClaims.getAny().addAll(claims.getAny());
newClaims.getOtherAttributes().putAll(claims.getOtherAttributes());
}
return newClaims;
}