/** * Creates a new server-based {@link Backend}. * * @param uri the {@link URI} where to store the back-end * @param baseConfig the base configuration that defines the behaviour of the back-end * * @return a new back-end * * @throws Exception if an error occurs during the back-end initialization */ @Nonnull @SuppressWarnings("unchecked") // TODO Save the configuration in a default NeoEMF directory ('${user.home}/.neoemf/conf/' for example) private Backend createRemoteBackend(URI uri, ImmutableConfig baseConfig) throws Exception { URL url = uriToUrl(uri); // Create a new default mutable configuration C mergedConfig = (C) Config.forName(baseConfig.getName(), baseConfig.getVariant()).merge(baseConfig); return createRemoteBackend(url, mergedConfig); }