class SpringmvcProducerResponseMapperFactory implements ProducerResponseMapperFactory {

  @Override
  public boolean isMatch(Type producerType) {
    if (!ParameterizedType.class.isAssignableFrom(producerType.getClass())) {
      return false;
    }

    return ((ParameterizedType) producerType).getRawType().equals(ResponseEntity.class);
  }

}