Problem
Importing the domain/model session service dependency in the Spring Boot version of cBioPortal (work-in-progress) causes an error creating the application context. The cause is that a @MongoTemplate bean used by the SessionRepositoryImpl.java is missing.
Solution
I think that the domain package exported with the model classifier (see POM.xml) to the dependency jar incorrectly includes the SessionRepositoryImpl.java class since it contains implementation details, not domain models. I propose to move this class to a different package so that it is not exported into the dependency jar. This will remove the need to configure the Spring application context for this dependency.
A proposed change is available in #45