code: public void setObjects(Map<String, Locator> objects) {
          this.objects.clear();
          if (objects != null) {
              this.objects.putAll(objects);
          }
      }
docs: Clears current objects list and sets new object list
  @param objects