final PortfolioMaster remotePortfolioMaster = getToolContext().getPortfolioMaster();
ConfigSaver configSaver = new ConfigSaver(remoteConfigMaster, remotePortfolioMaster, new ArrayList<String>(), new ArrayList<String>(), true, true);
ByteArrayOutputStream byteArrayOutput = new ByteArrayOutputStream();
PrintStream outputStream = new PrintStream(byteArrayOutput);
configSaver.saveConfigs(outputStream);
ConfigLoader configLoader = new ConfigLoader(configMaster, portfolioMaster, true, true, true);
configLoader.loadConfig(new ByteArrayInputStream(byteArrayOutput.toByteArray()));
}
};
String[] args = {"-c", _serverUrl };
remoteServerTool.initAndRun(args, ToolContext.class);
}