Put the Repository in the context instead of just the key to avoid eventual repository lookup via RepositoryRegistry

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>