code: public final void updateOwner(final Map<String, Object> pAddParam,
      final AdditionCostLine pEntity) throws Exception {
      String query =
      "select sum(ITSTOTAL) as ITSTOTAL from"
        + " ADDITIONCOSTLINE where ITSOWNER="
          + pEntity.getItsOwner().getItsId();
      Double total = getSrvDatabase().evalDoubleResult(query, "ITSTOTAL");
      pEntity.getItsOwner().setTotalAdditionCost(BigDecimal.valueOf(total)
  .setScale(getSrvAccSettings().lazyGetAccSettings(pAddParam).getCostPrecision(),
    getSrvAccSettings().lazyGetAccSettings(pAddParam).getRoundingMode()));
      pEntity.getItsOwner().setItsTotal(pEntity.getItsOwner()
        .getTotalMaterialsCost().add(pEntity.getItsOwner()
          .getTotalAdditionCost()).setScale(getSrvAccSettings()
        .lazyGetAccSettings(pAddParam).getCostPrecision(),
      getSrvAccSettings().lazyGetAccSettings(pAddParam).getRoundingMode()));
      pEntity.getItsOwner().setItsCost(pEntity.getItsOwner().getItsTotal()
        .divide(pEntity.getItsOwner().getItsQuantity(),
          getSrvAccSettings().lazyGetAccSettings(pAddParam).getCostPrecision(),
            getSrvAccSettings().lazyGetAccSettings(pAddParam).getRoundingMode()));
      getSrvOrm().updateEntity(pAddParam, pEntity.getItsOwner());
    }
docs: <p>Insert immutable line into DB.</p>
  @param pAddParam additional param
  @param pEntity entity
  @throws Exception - an exception