@ SneakyThrows public < T extends SOAPObject > T newSoapObject ( final Class < T > objectType ) { val qName = getSamlObjectQName ( objectType ) ; val builder = ( SOAPObjectBuilder < T > ) XMLObjectProviderRegistrySupport . getBuilderFactory ( ) . getBuilder ( qName ) ; if ( builder == null ) { throw new IllegalStateException ( "No SAML object builder is registered for class " + objectType . getName ( ) ) ; } return objectType . cast ( builder . buildObject ( qName ) ) ; }
New soap object t .