/** Add a {@link TypeDeserializationStateListener} to the specified type */ public <T> void setTypeDeserializationStateListener( String type, TypeDeserializationStateListener<T> listener) { FastBlobTypeDeserializationState<T> typeState = getTypeDeserializationState(type); if (typeState == null) { throw new RuntimeException( "Unable to find type. Ensure there exists an NFTypeSerializer with the name: " + type); } typeState.setListener(listener); }