public QName getSamlObjectQName(final Class objectType) {
        try {
            val f = objectType.getField(DEFAULT_ELEMENT_NAME_FIELD);
            return (QName) f.get(null);
        } catch (final NoSuchFieldException e) {
            throw new IllegalStateException("Cannot find field " + objectType.getName() + '.' + DEFAULT_ELEMENT_NAME_FIELD, e);
        } catch (final IllegalAccessException e) {
            throw new IllegalStateException("Cannot access field " + objectType.getName() + '.' + DEFAULT_ELEMENT_NAME_FIELD, e);
        }
    }
public QName getSamlObjectQName ( final Class objectType ) { try { val f = objectType . getField ( DEFAULT_ELEMENT_NAME_FIELD ) ; return ( QName ) f . get ( null ) ; } catch ( final NoSuchFieldException e ) { throw new IllegalStateException ( "Cannot find field " + objectType . getName ( ) + '.' + DEFAULT_ELEMENT_NAME_FIELD , e ) ; } catch ( final IllegalAccessException e ) { throw new IllegalStateException ( "Cannot access field " + objectType . getName ( ) + '.' + DEFAULT_ELEMENT_NAME_FIELD , e ) ; } }
Gets saml object QName.

@param objectType the object type
@return the saml object QName