@Override public List<BusInfo> getAll() { List<BusInfo> list; if ((list = busInfoRepo.findAll()).isEmpty()) { LOGGER.warn("Cant find any Bus in class: " + getClass().getName()); } return list; }