code: @Override
    public final synchronized void changeBalanceStorePeriod(
      final Map<String, Object> pAddParam,
        final EPeriod pPeriod) throws Exception {
      if (pPeriod == null) {
        throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
          "null_not_accepted");
      }
      if (!lazyGetBalanceAtAllDirtyCheck(pAddParam).getBalanceStorePeriod()
        .equals(pPeriod)) {
        getLogger().info(null, SrvBalanceStd.class,
          "changing period from " + this.balanceAtAllDirtyCheck
            .getBalanceStorePeriod() + " to " + pPeriod);
        this.balanceAtAllDirtyCheck.setBalanceStorePeriod(pPeriod);
        if (!getSrvAccSettings().lazyGetAccSettings(pAddParam)
          .getBalanceStorePeriod().equals(pPeriod)) {
          getSrvAccSettings().lazyGetAccSettings(pAddParam)
            .setBalanceStorePeriod(pPeriod);
          getSrvAccSettings().saveAccSettings(pAddParam, getSrvAccSettings()
            .lazyGetAccSettings(pAddParam));
        }
        this.balanceAtAllDirtyCheck
          .setCurrentBalanceDate(initDate);
        this.balanceAtAllDirtyCheck.setIsPeriodChanged(true);
        getSrvOrm()
          .updateEntity(pAddParam, this.balanceAtAllDirtyCheck);
      }
    }
docs: <p>Change period of stored balances EPeriod.DAILY/WEEKLY/MONTHLY
  and switch on "current balances are dirty".</p>
  @param pAddParam additional param
  @param pPeriod EPeriod e.g. MONTHLY
  @throws Exception - an exception