private void createLocationDefMap() {
   if (m_monitoringLocationsConfiguration.getLocations() != null) {
     for (LocationDef def :
         m_monitoringLocationsConfiguration.getLocations().getLocationDefCollection()) {
       m_locationDefs.put(def.getLocationName(), def);
     }
   }
 }
 private OnmsMonitoringLocationDefinition convertDef(final LocationDef def) {
   final OnmsMonitoringLocationDefinition onmsDef = new OnmsMonitoringLocationDefinition();
   onmsDef.setArea(def.getMonitoringArea());
   onmsDef.setName(def.getLocationName());
   onmsDef.setPollingPackageName(def.getPollingPackageName());
   onmsDef.setGeolocation(def.getGeolocation());
   onmsDef.setCoordinates(def.getCoordinates());
   onmsDef.setPriority(def.getPriority());
   if (def.getTags() != null) {
     final Set<String> tags = new HashSet<String>();
     for (final Tag t : def.getTags().getTagCollection()) {
       tags.add(t.getName());
     }
     onmsDef.setTags(tags);
   }
   return onmsDef;
 }
  private void updateLocationDef(
      final LocationDef def, final OnmsMonitoringLocationDefinition onmsDef) {
    def.setMonitoringArea(onmsDef.getArea());
    def.setPollingPackageName(onmsDef.getPollingPackageName());
    def.setGeolocation(onmsDef.getGeolocation());
    def.setCoordinates(onmsDef.getCoordinates());
    def.setPriority(onmsDef.getPriority());

    final Tags tags = new Tags();
    for (final String tag : onmsDef.getTags()) {
      final Tag t = new Tag();
      t.setName(tag);
      tags.addTag(t);
    }
    def.setTags(tags);
  }