public void attachTo(SRepository repo) { assert myModel != null : "call createModel() first"; ((SModelBase) myModel).attach(repo); }