code: public List<GeometryIndex> getAdjacentVertices(Geometry geometry, GeometryIndex index)
  			throws GeometryIndexNotFoundException {
  		try {
  			List<org.geomajas.geometry.service.GeometryIndex> delegateVertices = delegate.getAdjacentVertices(geometry,
  					toDelegate(index));
  			List<GeometryIndex> vertices = new ArrayList<GeometryIndex>();
  			for (org.geomajas.geometry.service.GeometryIndex i : delegateVertices) {
  				vertices.add(fromDelegate(i));
  			}
  			return vertices;
  		} catch (org.geomajas.geometry.service.GeometryIndexNotFoundException e) {
  			throw fromDelegate(e);
  		}
  	}
docs: Given a certain geometry and index, find the neighboring vertices. It is important to understand that searching
  vertices within a closed ring will always return 2 vertices (unless the ring contains only 1 or 2 coordinates),
  while searching within a LineString can yield different results (the beginning or end only has 1 neighbor).
  
  @param geometry The geometry wherein to search for neighboring vertices.
  @param index The index to start out from. Must point to either a vertex or and edge.
  @return The list of neighboring vertices.
  @throws GeometryIndexNotFoundException Thrown in case the given index does not match the given geometry.