public Transit createNewTransit(String userName){
  boolean found=false;
  String testName="";
  Transit z;
  while (!found) {
    int nextAutoTransitRef=lastAutoTransitRef + 1;
    testName="IZ" + nextAutoTransitRef;
    z=getBySystemName(testName);
    if (z == null) {
      found=true;
    }
    lastAutoTransitRef=nextAutoTransitRef;
  }
  return createNewTransit(testName,userName);
}

public Transit createNewTransit ( String userName ) { boolean found = false ; String testName = "" ; Transit z ; while ( ! found ) { int nextAutoTransitRef = lastAutoTransitRef + 1 ; testName = "IZ" + nextAutoTransitRef ; z = getBySystemName ( testName ) ; if ( z == null ) { found = true ; } lastAutoTransitRef = nextAutoTransitRef ; } return createNewTransit ( testName , userName ) ; }
for use with user gui , to allow the auto generation of systemnames , where the user can optionally supply a username . note : since system names should be kept short for use in dispatcher , the : auto : 000 has been removed from automatically generated system names . autogenerated system names will use iznn , where nn is the first available number .
