private IMessageProducer findRegisteredProducer ( Class < ? > clazz ) { for ( IMessageProducer producer : producers ) { if ( clazz . isInstance ( producer ) ) { return producer ; } } return null ; }
Returns a producer of the specified class .