assert $instance.getId().equals(getId());
assert $instance != null; assert ($instance.getId() == null) ? (getId() == null) : $instance.getId().equals(getId());
  public final PersistentBean getInstance() throws FatalFacesException {    LOG.debug("instance requested; id = " + getId());    if ($instance == null) {      LOG.debug("instance is not cached");      if (getPersistentBeanType() == null) {        RobustCurrent.fatalProblem("should load instance from db or create fresh instance, "                                   + "but type is null", LOG);      }      if (getId() != null) {        LOG.debug("id = " + getId() + "; loading from DB");        $instance = loadInstance();      }      else {        LOG.debug("id is null; creating fresh");        $instance = createInstance();      }      LOG.debug("instance = " + $instance);      assert $instance.getId().equals(getId());      instanceChanged($instance);    }    else {      LOG.debug("returning instance from cache: " + $instance);    }    return $instance;  }