Replies a bus hub name that was not exist in the specified
bus network.

@param busnetwork is the bus network from which a free bus hub name may be computed.
@return a name suitable for a bus hub.
174244
@Pure
	public static String getFirstFreeBusHubName(BusNetwork busnetwork) {
		int nb = busnetwork.getBusHubCount();
		String name;
		do {
			++nb;
			name = Locale.getString(
					"NAME_TEMPLATE", //$NON-NLS-1$
					Integer.toString(nb));
		}
		while (busnetwork.getBusHub(name) != null);
		return name;
	}
114669
public static int getNode(Network bn, String nodeName)
            throws ShanksException {
        int node = bn.getNode(nodeName);
        return node;
    }
148266
public Set getSIBDestinationLocalitySet(String busName, String uuid)
			throws SIBExceptionBase {
		return getDestinationCache()
				.getSIBDestinationLocalitySet(busName, uuid);
	}
1316588
public void getSIBDestination(String busName, String name, DestinationDefinition dd) throws SIBExceptionBase, SIBExceptionDestinationNotFound {

        String thisMethodName = "getSIBDestination";

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, thisMethodName, new Object[] { busName, name, dd.getName() });
        }

        if (oldDestCache == null) {
            _bus.getDestinationCache().getSIBDestination(busName, name, dd);
        } else {
            oldDestCache.getSIBDestination(busName, name, dd);
        }

        // Resolve Exception Destination if necessary
        resolveExceptionDestination(dd);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, thisMethodName);
        }
    }
158897
@Pure
	public BusHub getBusHub(String name, Comparator<String> nameComparator) {
		if (name == null) {
			return null;
		}
		final Comparator<String> cmp = nameComparator == null ? BusNetworkUtilities.NAME_COMPARATOR : nameComparator;
		for (final BusHub busHub : this.validBusHubs) {
			if (cmp.compare(name, busHub.getName()) == 0) {
				return busHub;
			}
		}
		for (final BusHub busHub : this.invalidBusHubs) {
			if (cmp.compare(name, busHub.getName()) == 0) {
				return busHub;
			}
		}
		return null;
	}
1338596
public void getSIBDestination(String busName, String name,
			DestinationDefinition dd) throws SIBExceptionBase,
			SIBExceptionDestinationNotFound {
		getDestinationCache().getSIBDestination(busName, name, dd);
	}
1262386
public BaseDestinationDefinition getSIBDestination(String busName,
			String name) throws SIBExceptionBase,
			SIBExceptionDestinationNotFound {
		return getDestinationCache().getSIBDestination(busName, name);
	}
462009
private String getServiceName() {
        TransportMetadata tm = getTransportMetadata();
        if (tm == null) {
            return "null";
        }
        
        return tm.getProviderName() + ' ' + tm.getName();
    }
731108
public JsBus getBus(String name) throws SIBExceptionBusNotFound {
    if (!isInitialized()) {
      return null;
    }
    return _jsmain.getBus(name);
  }
379716
private void setOriginatingBus(String busName)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setOriginatingBus", busName);
        _busName = busName;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setOriginatingBus");
    }
317941
public String getOriginatingBus()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(this, tc, "getOriginatingBus");
            SibTr.exit(this, tc, "getOriginatingBus", _busName);
        }
        return _busName;
    }
492812
public boolean removeBusStop(BusStop busStop) {
		final int index = this.busStops.indexOf(busStop);
		if (index >= 0) {
			this.busStops.remove(index);
			busStop.removeBusHub(this);
			resetBoundingBox();
			firePrimitiveChanged(new BusChangeEvent(this,
					BusChangeEventType.STOP_REMOVED,
					busStop,
					index,
					null,
					null,
					null));
			checkPrimitiveValidity();
			return true;
		}
		return false;
	}
612298
public Connector getConnectorForSourceName( String sourceName ) {
        assert sourceName != null;
        return this.snapshot.get().getConnectorWithSourceKey(NodeKey.keyForSourceName(sourceName));
    }
522751
@Pure
	public static Iterator<BusItineraryHalt> getBusHalts(BusNetwork busNetwork) {
		assert busNetwork != null;
		return new NetworkHaltIterator(busNetwork);
	}
1167459
public String toStringPlus(String destName, String busName)
  {
    StringBuffer sb = new StringBuffer(toString());
    
    // Add the destination name which has triggered the exception to the end
    // of the list, making the problem obvious.
    String compoundName = new CompoundName(destName, busName).toString();
    sb.append(" -> ");
    sb.append(compoundName);
    
    return sb.toString();
  }
401431
@Override
    public String nextCalledName ( CIFSContext tc ) {
        if ( this.addr instanceof NbtAddress ) {
            return ( (NbtAddress) this.addr ).nextCalledName(tc);
        }
        else if ( this.calledName != NbtAddress.SMBSERVER_NAME ) {
            this.calledName = NbtAddress.SMBSERVER_NAME;
            return this.calledName;
        }
        return null;
    }
1000812
static public Bus getBy(String busName){
		if(busName==null)
			return get();
		
		Bus bus = busMap.get(busName);
		if(bus==null) {
			bus=new Bus();
			busMap.put(busName, bus);
		}
		return bus;
	}