public EncounterLocationComponent addLocation() { //3
      EncounterLocationComponent t = new EncounterLocationComponent();
      if (this.location == null)
        this.location = new ArrayList<EncounterLocationComponent>();
      this.location.add(t);
      return t;
    }
public EncounterLocationComponent addLocation ( ) { EncounterLocationComponent t = new EncounterLocationComponent ( ) ; if ( this . location == null ) this . location = new ArrayList < EncounterLocationComponent > ( ) ; this . location . add ( t ) ; return t ; }
syntactic sugar