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