code: protected void safeExecuteChangeListener(CmsEntity entity, I_CmsEntityChangeListener listener) {
  
          try {
              listener.onEntityChange(entity);
          } catch (Exception e) {
              String stack = CmsClientStringUtil.getStackTrace(e, "<br />");
              CmsDebugLog.getInstance().printLine("<br />" + e.getMessage() + "<br />" + stack);
          }
      }
docs: Calls an entity change listener, catching any errors.<p>
  
  @param entity the entity with  which the change listener should be called
  @param listener the change listener