if (serverInstance == null) {
throw new NullPointerException("No such server: " + serverInstance.getName());
}
ServerInfo serverInfo = new BasicServerInfo(geronimoHome.getAbsolutePath(), false);
LocalAttributeManager attributeStore = new LocalAttributeManager(serverInstance.getConfigFile(), serverInstance.getConfigSubstitutionsFile(),
serverInstance.getConfigSubstitutionsPrefix(),
false,
serverInfo);
attributeStore.load();
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");
}
}