public RequestSecurityToken createRSTFrom(Element elem) {
try {
javax.xml.bind.Unmarshaller u = getContext(WSTrustVersion.WS_TRUST_13).createUnmarshaller();
JAXBElement<RequestSecurityTokenType> rstType = u.unmarshal(elem, RequestSecurityTokenType.class);
RequestSecurityTokenType type = rstType.getValue();
return new RequestSecurityTokenImpl(type);
} catch ( Exception ex) {
throw new RuntimeException(ex.getMessage(), ex);
}
}