class SpringmvcProducerResponseMapperFactory implements ProducerResponseMapperFactory {

  @Override
  public ProducerResponseMapper createResponseMapper(ResponseMapperFactorys<ProducerResponseMapper> factorys,
      Type producerType) {
    Type realProducerType = ((ParameterizedType) producerType).getActualTypeArguments()[0];
    ProducerResponseMapper realMapper = factorys.createResponseMapper(realProducerType);
    return new SpringmvcProducerResponseMapper(realMapper);
  }

}