@Override
    public int getState() {
      final int state = super.getState();
      if (state != 0 || getFlex().isCleanState()) {
        return state;
      }
      return DIRTY_STATE;
    }
@Override
    public int getState()