* @param remote the remote to get
* @return an interface for the remote repository
*/
@VisibleForTesting
public Optional<IRemoteRepo> getRemoteRepo(Remote remote) {
Hints remoteHints = new Hints();
remoteHints.set(Hints.REMOTES_READ_ONLY, Boolean.FALSE);
Repository localRepository = repository();
DeduplicationService deduplicationService = context.deduplicationService();
return RemoteUtils.newRemote(GlobalContextBuilder.builder.build(remoteHints), remote,
localRepository, deduplicationService);
}