SettingManager settingManager = gc.getBean(SettingManager.class);
boolean localRating = settingManager.getValueAsBool("system/localrating/enable", false);
if (localRating || harvUuid == null)
//--- metadata is local, just rate it
rating = dm.rateMetadata(Integer.valueOf(id), ip, rating);
else
{
//--- the metadata is harvested, is type=geonetwork?
AbstractHarvester ah = hm.getHarvester(harvUuid);