instanceChanged();
instanceChanged($instance);
  public final void editNew(final PersistentBean instance) throws InvalidBeanException {    LOG.debug("InstanceHandler.editNew called; a new instance is stored in the handler");    if (instance == null        || instance.getId() != null        || !getPersistentBeanType().isInstance(instance)) {      throw new InvalidBeanException(instance, getPersistentBeanType());    }    $instance = instance;    assert getInstance() != null;    assert getInstance().getId() == null;    assert getPersistentBeanType().isInstance(instance);    instanceChanged();    setViewMode(VIEWMODE_EDITNEW);    LOG.debug("Stored new persistent bean successfully");  }