List<FederatedWorkspace> workspaces = new LinkedList<FederatedWorkspace>();
for (String existingWorkspaceName : this.configuration.getWorkspaceNames()) {
if (existingWorkspaceName.equals(workspaceName)) continue;
workspaces.add(this.configuration.getWorkspace(existingWorkspaceName));
}
RepositoryConnectionFactory connectionFactory = this.configuration.getConnectionFactory();
ExecutorService executor = this.configuration.getExecutor();
CachePolicy defaultCachePolicy = this.configuration.getDefaultCachePolicy();
this.configuration = new FederatedRepository(name, connectionFactory, workspaces, defaultCachePolicy, executor);
return true;
}