code: public void init(BaseDatabase database, Record record)
      {
          super.init(database, record);
          if (record != null)
          {  // Always
              BaseField field = record.getSharedRecordTypeKey();
              if (field.getListener(InitOnceFieldHandler.class.getName()) == null)
                  field.addListener(new InitOnceFieldHandler(null));
              ((InitOnceFieldHandler)field.getListener(InitOnceFieldHandler.class.getName())).setFirstTime(false);
          }
      }
docs: init variables.