class FundService {

        public Pagination<Fund> search(FundSearch fundSearch, BindingResult errors) {
            
            try {
                
                List<Fund> funds = new ArrayList<>();
                funds.add(fundSearch);
                validate(funds, Constants.ACTION_SEARCH, errors);
    
                if (errors.hasErrors()) {
                    throw new CustomBindException(errors);
                }
            
            } catch (CustomBindException e) {
    
                throw new CustomBindException(errors);
            }
    
            return fundRepository.search(fundSearch);
        }

}