assert getType().isInstance(getInstance());
assert getType().isInstance(result);
  private PersistentBean loadInstance() throws FatalFacesException {    LOG.debug("loading instance with id = " + getId() +              " and type = " + getType());    assert getDao() != null;    PersistentBean result = null;    try {      if (getId() == null) {        RobustCurrent.fatalProblem("id is null", LOG);        // MUDO (jand) replace with goback?      }      if (getType() == null) {        RobustCurrent.fatalProblem("type is null", LOG);        // MUDO (jand) replace with goback?      }      LOG.debug("retrieving persistent bean with id "                  + getId() + " and type " + getType() + "...");      result = getDao().retrievePersistentBean(getId(), getType()); // IdNotFoundException, TechnicalException      assert result != null;      assert result.getId().equals(getId());      assert getType().isInstance(getInstance());      if (LOG.isDebugEnabled()) {        // if makes that there really is lazy loading if not in debug        LOG.debug("retrieved persistent bean is " + getInstance());      }    }    catch (IdNotFoundException infExc) {      // this will force $instance null      LOG.info("could not find instance of type " + getType() +               " with id " + getId(), infExc);      // MUDO goback() instead of exception      RobustCurrent.fatalProblem("could not find persistent bean with id " +                                 getId() + " of type " +                                 getType(), infExc, LOG);    }    catch (TechnicalException tExc) {      RobustCurrent.fatalProblem("could not retrieve persistent bean with id " +                                 getId() + " of type " +                                 getType(), tExc, LOG);    }    return result;  }