public void saveMapAs(String name, String key) {
String salida = _graphManager.getGraphXML(name, key);
StringBuffer[] sb = new StringBuffer[1];
sb[0] = new StringBuffer(salida);
ConfPusher push = null;
for (int i = 0; i < _pushers.size(); i++) {
push = _pushers.get(i);
if (push.getName().equals("URLPusher")) {
break;
}
push = null;
}
if (push != null) {
Class klass = null;
try {
klass = Class.forName(push.getPusherClass());
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
}
ConfParam param = push.getParam("uploadURL");
if (param != null) {
String uploadURL = param.getValue();
if (uploadURL.startsWith("/")) {
uploadURL = getStringParam("nagiosbase") + uploadURL;