LPS-46046 Add repositoryEntryLocalService to BaseRepositoryImpl
LPS-46046 Replace persistence call to service call in getRepositoryEntryIds because it is called from a read-only transaction which prevents persisting the new object
LPS-46046 Align code because of the new Exception
LPS-46046 Use thread local as in other repository classes