code: public JsHandlerRegistration addGeometryIndexMarkForDeletionBeginHandler(
  			final GeometryIndexMarkForDeletionBeginHandler handler) {
  		org.geomajas.plugin.editing.client.event.state.GeometryIndexMarkForDeletionBeginHandler h;
  		h = new org.geomajas.plugin.editing.client.event.state.GeometryIndexMarkForDeletionBeginHandler() {
  
  			public void onGeometryIndexMarkForDeletionBegin(GeometryIndexMarkForDeletionBeginEvent event) {
  				org.geomajas.plugin.editing.jsapi.client.event.state.GeometryIndexMarkForDeletionBeginEvent e;
  				List<GeometryIndex> indices = event.getIndices();
  				e = new org.geomajas.plugin.editing.jsapi.client.event.state.GeometryIndexMarkForDeletionBeginEvent(
  						event.getGeometry(), indices.toArray(new GeometryIndex[indices.size()]));
  				handler.onGeometryIndexMarkForDeletionBegin(e);
  			}
  		};
  		return new JsHandlerRegistration(
  				new HandlerRegistration[] { delegate.addGeometryIndexMarkForDeletionBeginHandler(h) });
  	}
docs: Register a {@link GeometryIndexMarkForDeletionBeginHandler} to listen to mark for deletion begin events of
  sub-geometries, vertices and edges.
  
  @param handler
  The {@link GeometryIndexMarkForDeletionBeginHandler} to add as listener.
  @return The registration of the handler.