<BUG>DataType from = getCurrentType(exchange, Exchange.INPUT_TYPE);DataType to = contract.getInputType();</BUG><CONTEXT>public ContractAdvice(Contract contract) {this.contract = contract;}@Overridepublic Object before(Exchange exchange) throws Exception {<extra_id_0>if (to != null) {if (!to.equals(from)) {LOG.debug("Looking for transformer for INPUT: from='{}', to='{}'", from, to);</CONTEXT>
if (!(exchange.getIn() instanceof DataTypeAware)) {return null;DataTypeAware target = (DataTypeAware)exchange.getIn();DataType from = target.getDataType();DataType to = contract.getInputType();