public boolean delete() { if (accountTypeDTO.getCustomers().size() > 0) { return false; } for (AccountInformationTypeDTO ait : accountTypeDTO.getInformationTypes()) { new AccountInformationTypeBL(ait.getId()).delete(); } accountTypeDTO.getInformationTypes().clear(); accountTypeDAS.delete(accountTypeDTO); return true; }