/** * {@inheritDoc} * * @throws InitializationException {@inheritDoc} * @throws InterruptedException {@inheritDoc} */ @Override protected void postInit() throws InitializationException, InterruptedException { super.postInit(); try { this.setMessageProcessor(new GenericMessageProcessor<>(getDataClass())); if (!initialized) { Registries.getUnitRegistry().addDataObserver(unitRegistryObserver); initialized = true; } } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }