public Route provideRoute(String systemName,String userName){
  Route r;
  r=getByUserName(systemName);
  if (r != null) {
    return r;
  }
  r=getBySystemName(systemName);
  if (r != null) {
    return r;
  }
  r=new DefaultRoute(systemName,userName);
  register(r);
  if (systemName.startsWith("IR:AUTO:")) {
    try {
      int autoNumber=Integer.parseInt(systemName.substring(8));
      if (autoNumber > lastAutoRouteRef) {
        lastAutoRouteRef=autoNumber;
      }
    }
 catch (    NumberFormatException e) {
      log.warn("Auto generated SystemName " + systemName + " is not in the correct format");
    }
  }
  return r;
}

public Route provideRoute ( String systemName , String userName ) { Route r ; r = getByUserName ( systemName ) ; if ( r != null ) { return r ; } r = getBySystemName ( systemName ) ; if ( r != null ) { return r ; } r = new DefaultRoute ( systemName , userName ) ; register ( r ) ; if ( systemName . startsWith ( "IR:AUTO:" ) ) { try { int autoNumber = Integer . parseInt ( systemName . substring ( 8 ) ) ; if ( autoNumber > lastAutoRouteRef ) { lastAutoRouteRef = autoNumber ; } } catch ( NumberFormatException e ) { log . warn ( "Auto generated SystemName " + systemName + " is not in the correct format" ) ; } } return r ; }
method to provide a route whether or not is already exists .
