class RecoveryService {

    public Pagination<Recovery> search(RecoverySearch recoverySearch, BindingResult errors) {
        
        try {
            
            List<Recovery> recoveries = new ArrayList<>();
            recoveries.add(recoverySearch);
            validate(recoveries, Constants.ACTION_SEARCH, errors);

            if (errors.hasErrors()) {
                throw new CustomBindException(errors);
            }
        
        } catch (CustomBindException e) {

            throw new CustomBindException(errors);
        }

        return recoveryRepository.search(recoverySearch);
    }

}