code: @Override
  	public ShapeStyle create(GeometryEditService editService, GeometryIndex index)
  			throws GeometryIndexNotFoundException {
  		if (index == null) {
  			return findGeometryStyle(editService, index);
  		}
  		switch (editService.getIndexService().getType(index)) {
  			case TYPE_VERTEX:
  				return findVertexStyle(editService, index);
  			case TYPE_EDGE:
  				return findEdgeStyle(editService, index);
  			default:
  				return findGeometryStyle(editService, index);
  		}
  	}
docs: ------------------------------------------------------------------------