LPS-43613 Fix, Instance of class CMISRepository is not guaranteed to bound to the org.apache.chemistry.opencmis.client.api.Session so the binding should not be trusted.

LPS-43613 Fix, Instance of class CMISRepository is not guaranteed to bound to the org.apache.chemistry.opencmis.client.api.Session so the binding should not be trusted.

This fixes following problem:

This situation did happen, when repository has been added first time RepositoryLocalServiceImpl.createRepositoryImpl(..) is called and sessions was initialized. But when adding new file right after to repository the CMISRepository instance, which is now different then and CMISRepository._cmisRepositoryDetector  was not intialized, due sessions did already exist.