// unescape \\n from metadataAbstract so they're properly sent to geoserver
String metadataAbstract = Util.getParam(params, "metadataAbstract", "").replace("\\n","\n");
MapServer m = repo.findOneById(nodeId);
GeoServerNode g = new GeoServerNode(m);
final GeonetHttpRequestFactory requestFactory = context.getBean(GeonetHttpRequestFactory.class);
GeoServerRest gs = new GeoServerRest(requestFactory, g.getUrl(),
g.getUsername(), g.getUserpassword(),
g.getNamespacePrefix(), baseUrl);
String file = Util.getParam(params, "file");