DATACMNS-406 - Polishing.

Refactored code in RepositoryMetadata implementations to avoid compiler warnings. Some JavaDoc polishing.