if (this.repository != null) {
RepositoryContext repositoryContext = getRepositoryContext();
if (repositoryContext != null) {
// Find in JNDI the repository source registry and the environment ...
ExecutionContext context = getExecutionContext();
RepositoryConnectionFactory factory = getRepositoryContext().getRepositoryConnectionFactory();
// Compute a new repository config and set it on the repository ...
FederatedRepositoryConfig newConfig = getRepositoryConfiguration(context, factory);
this.repository.setConfiguration(newConfig);
}
}