code: public final synchronized String evalQueryBalance(
      final Map<String, Object> pAddParam, final Date pDate) throws Exception {
      if (this.queryBalance == null) {
        String flName = "/" + "accounting" + "/" + "balance"
          + "/" + "queryBalanceSheet.sql";
        this.queryBalance = loadString(flName);
      }
      String query = queryBalance.replace(":DATE1",
        String.valueOf(getSrvBalance()
          .evalDatePeriodStartFor(pAddParam, pDate).getTime()));
      query = query.replace(":DATE2", String.valueOf(pDate.getTime()));
      return query;
    }
docs: <p>Evaluate Balance query.</p>
  @param pAddParam additional param
  @param pDate date of balance
  @return query of balance
  @throws Exception - an exception