private KeyReader findReaderMatchingExactType(final Iterable<KeyReader> readers, final Class<?> messageType) {
        KeyReader messageKeyReader = null;

        for (KeyReader reader : readers) {
            if (reader.getMessageClass().equals(messageType)) {
                messageKeyReader = reader;
                break;
            }
        }

        return messageKeyReader;
    }
private KeyReader findReaderMatchingExactType ( final Iterable < KeyReader > readers , final Class < ? > messageType ) { KeyReader messageKeyReader = null ; for ( KeyReader reader : readers ) { if ( reader . getMessageClass ( ) . equals ( messageType ) ) { messageKeyReader = reader ; break ; } } return messageKeyReader ; }
Search for reader based on message class.