// Create a new (updated) configuration ...
repositoryConfiguration = new RepositoryConfiguration(config, repositoryName);
// Deploy the repository and use this as the environment ...
engine.deploy(repositoryConfiguration.with(this));
} catch (ConfigurationException e) {
throw new StartException(e);
} catch (RepositoryException e) {
throw new StartException(e);
}