public synchronized void updateProducer ( PHPProducerDTO producerDTO ) { Mapper mapper = mappersRegistry . getMapper ( producerDTO . getMapperId ( ) ) ; if ( mapper == null ) { log . error ( "Mapper with id " + producerDTO . getMapperId ( ) + " is not found to map producer " + producerDTO . getProducerId ( ) ) ; return ; } try { mapper . mapProducer ( producerRegistry , producerDTO ) ; } catch ( MappingException e ) { log . error ( "Failed to process producer data with producer id " + producerDTO . getProducerId ( ) + " because mapper throws an exception" , e ) ; } }
Processes incoming producer data .