public RequestSecurityToken createRSTFrom(final Element elem) {
try {
final javax.xml.bind.Unmarshaller unmarshaller = getContext().createUnmarshaller();
final JAXBElement<RequestSecurityTokenType> rstType = unmarshaller.unmarshal(elem, RequestSecurityTokenType.class);
final RequestSecurityTokenType type = rstType.getValue();
return new RequestSecurityTokenImpl(type);
} catch ( Exception ex) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0007_FAIL_RST_ELEM(elem.toString()), ex);
throw new RuntimeException(LogStringsMessages.WST_0007_FAIL_RST_ELEM(elem.toString()), ex);
}