public static List<XMLElement> getBuses(XMLElement provider) {
		
		// is a provider?
		// TODO more specific control
		if (!provider.getAddress().startsWith("/jbossesb/providers/")) {
			return new ArrayList<XMLElement>();
		}
		
		// locate buses
		List<XMLElement> buses = new ArrayList<XMLElement>();
		for (XMLElement child : provider.getChildren()) {
			
			boolean isBus = false;
			for (XMLAttribute attr : child.getAttributes()) {
				if (attr.getXmlName().equals("busid")) {
					isBus = true;
					break;
				}
			}
			
			if (isBus) {
				buses.add(child);
			}
		}
		
		return buses;
	}