class XMLRoadUtil {

	public static void readRoadNetwork(Element xmlNode, RoadNetwork primitive, PathBuilder pathBuilder,
			XMLResources resources) throws IOException {
		final ContainerWrapper w = new ContainerWrapper(primitive);
		readGISElementContainer(xmlNode,
				w, NODE_ROAD, pathBuilder, resources);
		URL u;

		// Force the primitive to have the pointer to the Shape and dBase files

		u = w.getElementGeometrySourceURL();
		if (u != null) {
			primitive.setAttribute(MapElementLayer.ATTR_ELEMENT_GEOMETRY_URL, u);
		} else {
			primitive.removeAttribute(MapElementLayer.ATTR_ELEMENT_GEOMETRY_URL);
		}

		u = w.getElementAttributeSourceURL();
		if (u != null) {
			primitive.setAttribute(MapElementLayer.ATTR_ELEMENT_ATTRIBUTES_URL, u);
		} else {
			primitive.removeAttribute(MapElementLayer.ATTR_ELEMENT_ATTRIBUTES_URL);
		}

		final MapMetricProjection projection = w.getElementGeometrySourceProjection();
		if (projection != null) {
			primitive.setAttribute(MapElementLayer.ATTR_ELEMENT_GEOMETRY_PROJECTION, projection);
		} else {
			primitive.removeAttribute(MapElementLayer.ATTR_ELEMENT_GEOMETRY_PROJECTION);
		}
	}

	private  XMLRoadUtil();

}