All lines below (except return) this "getter" contains some logic, but shouldn't, it should be moved to private method, at least. In ideal: it should be moved to constructor or @PostConstruct Spring phase