private Object handleName(Object tos) {
      if ((tos instanceof Generator && ((Generator)tos).getName() == null) ||
          (tos instanceof Repository && ((Repository)tos).getName() == null) ||
          (tos instanceof Address && ((Address)tos).getName() == null) ||
          (tos instanceof Submitter && ((Submitter)tos).getName() == null)) {
         return new FieldRef(tos, "Name");
      }
      else if (tos instanceof Person) {
         Name name = new Name();
         ((Person)tos).addName(name);
         return name;
      }
      return null;
   }