Use the adapter pattern to add logic to the repository metadata model