code: private org.geomajas.geometry.service.GeometryIndex toDelegate(GeometryIndex index) {
  		if (index == null) {
  			return null;
  		}
  		org.geomajas.geometry.service.GeometryIndex result = delegate.create(toDelegate(index.getType()),
  				index.getValue());
  		GeometryIndex child = index.getChild();
  		while (child != null) {
  			result = delegate.addChildren(result, toDelegate(child.getType()), child.getValue());
  			child = child.getChild();
  		}
  		return result;
  	}
docs: Conversion methods from/to the indexService of the geometry project