class BankService {

	@Transactional
	public List<Bank> create(List<Bank> banks, BindingResult errors, RequestInfo requestInfo) {

		try {

			banks = fetchRelated(banks);

			validate(banks, Constants.ACTION_CREATE, errors);

			if (errors.hasErrors()) {
				throw new CustomBindException(errors);
			}
			for (Bank b : banks) {
				b.setId(bankRepository.getNextSequence());
                b.setTenantId(ApplicationThreadLocals.getTenantId().get());
			}

		} catch (CustomBindException e) {

			throw new CustomBindException(errors);
		}

		return bankRepository.save(banks, requestInfo);

	}

}