public Automation newAutomation(String name){
  Automation automation=getAutomationByName(name);
  if (automation == null) {
    _id++;
    automation=new Automation(Integer.toString(_id),name);
    Integer oldSize=Integer.valueOf(_automationHashTable.size());
    _automationHashTable.put(automation.getId(),automation);
    setDirtyAndFirePropertyChange(LISTLENGTH_CHANGED_PROPERTY,oldSize,Integer.valueOf(_automationHashTable.size()));
  }
  return automation;
}

public Automation newAutomation ( String name ) { Automation automation = getAutomationByName ( name ) ; if ( automation == null ) { _id ++ ; automation = new Automation ( Integer . toString ( _id ) , name ) ; Integer oldSize = Integer . valueOf ( _automationHashTable . size ( ) ) ; _automationHashTable . put ( automation . getId ( ) , automation ) ; setDirtyAndFirePropertyChange ( LISTLENGTH_CHANGED_PROPERTY , oldSize , Integer . valueOf ( _automationHashTable . size ( ) ) ) ; } return automation ; }
finds an existing automation or creates a new automation if needed requires automation ' s name creates a unique id for this automation
