protected void preroute(OutboundMessage msg, Collection<AGateway> gateways)
	{
		for (AGateway gtw : gateways)
			if ((gtw.isOutbound()) && (gtw.getStatus() == GatewayStatuses.STARTED))
			{
				if (msg.getGatewayId().equalsIgnoreCase("*")) getCandidates().add(gtw);
				else if (msg.getGatewayId().equalsIgnoreCase(gtw.getGatewayId())) getCandidates().add(gtw);
			}
	}