public void mergeOverrides(String server, AttributesType overrides) throws InvalidGBeanException, IOException {
ServerInstance serverInstance = servers.get(server);
if (serverInstance == null) {
throw new NullPointerException("No such server: " + server + ", known servers: " + servers.keySet());
}
PluginAttributeStore attributeStore = serverInstance.getAttributeStore();
for (ModuleType module : overrides.getModule()) {
Artifact artifact = Artifact.create(module.getName());
attributeStore.setModuleGBeans(artifact, module.getGbean(), module.isLoad(), module.getCondition());
attributeStore.save();
}
if (overrides.getConfiguration().size() > 0) {
throw new UnsupportedOperationException("Use modules, not configurations");
}
}