Application.getDatabase() will be removed in future, autowire bean or constructor instead