LPS-46842 rename the createRepositoryImpl method

Make explicit the fact that it is creating external repositories.
LPS-46842 remove initialization code from the *Repository constructors

 - Move initialization logic out of the constructors and into the factories.
 - Rearrange code to make duplication between factories more obvious.
 - Fix (partially) error management: previously, all exceptions were caught
   and ignored when creating repositories (this made impossible to detect a
   permission error, the core subject of this ticket). Now, the factory only
   captures and ignores NoSuch* errors
LPS-46842 refactor to make duplication between factories more obvious
LPS-46842 remove duplication at createLiferayRepository(long, long, long) method

Introduce a generic in BaseRepositoryFactory to be able to handle both LocalRepository
and Repository instances. Delegate in subclasses to create instances of the correct
repository and to retrieve other entities (fileEntry, folder, etc.).
LPS-46842 refactor to make createLiferayRepository(long) identical in both factories
LPS-46842 remove duplication in the createLiferayRepository(long) method

Push implementation into base class and delegate repository instance creation
to subclasses.
LPS-46842 refactor `create` methods to make duplication explicit
LPS-46842 move common code into the BaseRepositoryFactory class
LPS-46842 extract `getRepositoryEntryId` into a new util class to avoid duplication
LPS-46842 Format source
LPS-46842 remove the `actualRepositoryId` variable

The value of `repository.getRepositoryId()` will be always the same as `repositoryId`.
LPS-46842 SF