@Override
  public List<ServiceProduction> findAll(ServiceProductionCriteria criteria) {
    Predicate predicate = buildPredicate(criteria);

    if (criteria.isEmpty()) {
      return serviceProductionRepository.findAll();
    } else {
      return Lists.newArrayList(serviceProductionRepository.findAll(predicate));
    }
  }
 @Override
 public ServiceProduction find(Long id) {
   return serviceProductionRepository.findOne(id);
 }