public String addHarvesterReturnId(Element node, String ownerId) throws JeevesException, SQLException {
if (Log.isDebugEnabled(Geonet.HARVEST_MAN)) {
Log.debug(Geonet.HARVEST_MAN, "Adding harvesting node : \n" + Xml.getString(node));
}
String type = node.getAttributeValue("type");
AbstractHarvester ah = AbstractHarvester.create(type, context);
Element ownerIdE = new Element("ownerId");
ownerIdE.setText(ownerId);
node.addContent(ownerIdE);
ah.add(node);
hmHarvesters.put(ah.getID(), ah);
hmHarvestLookup.put(ah.getParams().uuid, ah);
if (Log.isDebugEnabled(Geonet.HARVEST_MAN)) {
Log.debug(Geonet.HARVEST_MAN, "Added node with id : \n" + ah.getID());
}
return ah.getID();
}