repo.setExposed(true);
repo.setOverrideLocalStorageUrl("overridelocalstorage");
repo.setProvider("provider");
repo.setProviderRole("providerRole");
RepositoryResourceRemoteStorage remoteStorage = new RepositoryResourceRemoteStorage();
remoteStorage.setRemoteStorageUrl("remoteStorageUrl");
AuthenticationSettings auth = new AuthenticationSettings();
auth.setNtlmDomain("ntlmdomain");
auth.setNtlmHost("ntmlhost");
auth.setPassword("password");
auth.setUsername("username");
remoteStorage.setAuthentication(auth);
RemoteConnectionSettings connection = new RemoteConnectionSettings();
connection.setConnectionTimeout(50);
connection.setQueryString("querystring");
connection.setRetrievalRetryCount(5);
connection.setUserAgentString("useragent");
remoteStorage.setConnectionSettings(connection);
repo.setRemoteStorage(remoteStorage);
RepositoryResourceResponse resourceResponse = new RepositoryResourceResponse();
resourceResponse.setData(repo);