* @throws RepositorySourceException if there is a problem with the configuration
*/
protected FederatedRepository loadRepository( String name,
RepositoryContext repositoryContext ) throws RepositorySourceException {
// All the required properties have been set ...
ExecutionContext executionContext = repositoryContext.getExecutionContext();
RepositoryConnectionFactory connectionFactory = repositoryContext.getRepositoryConnectionFactory();
ValueFactories valueFactories = executionContext.getValueFactories();
ValueFactory<String> strings = valueFactories.getStringFactory();
ValueFactory<Long> longs = valueFactories.getLongFactory();
ProjectionParser projectionParser = ProjectionParser.getInstance();
NamespaceRegistry registry = executionContext.getNamespaceRegistry();
try {
// Read the configuration for the federated repository:
// Level 1: the node representing the federated repository
// Level 2: the "dna:workspaces" node