LPS-50058 consistency
LPS-50030 Deleting the last message of a thread sets the last post to its parent message
LPS-50030 match prevAndNextThreads var in this same class
LPS-48728 make DLFileShortcutTrashHandler tests pass

Two kinds of exceptions where thrown here.  Always throw
InvalidRepositoryIdException so that callers don't have to double check.
LPS-48728 make tests expect the correct exn
LPS-48728 SF
LPS-50048 - removes deprecated Compass module
LPS-47763 SF
LPS-48895 add RepositoryEventTriggerCapability to all repos

If a repository doesn't define a RepositoryEventTriggerCapability, wire
in the Liferay implementation.

If a repository defines the capability, but doesn't expose it, leave it
as it is.
LPS-48895 no need to copy collections

New capability collections are created for each repository instance
inside the RepositoryInstanceDefinition.
LPS-48895 extract common code
LPS-48895 rename variables

Repository instances aren't necessarily external.
LPS-48895 make protected
LPS-48895 SF
LPS-48728 SF
LPS-50051 Further cleanup
LPS-50051 Update test to be fully covered
LPS-50051 SF
LPS-47296 - paths
LPS-47296 - macros