public void detach() { model.detach(); if (modelService != null) { modelService.detach(); } }
@Override protected void onDetach() { IModel<Node> model = this.getModel(); if (model != null) { model.detach(); } engineFactory.detach(); if (modelService != null) { modelService.detach(); } super.onDetach(); }