code: public final synchronized void retrieveAccSettings(
      final Map<String, Object> pAddParam) throws Exception {
      this.accSettings = new AccSettings();
      this.accSettings.setItsId(1L);
      this.accSettings = getSrvOrm().retrieveEntity(pAddParam, this.accSettings);
      if (this.accSettings == null) {
        throw new ExceptionWithCode(ExceptionWithCode.CONFIGURATION_MISTAKE,
          "There is no accounting settings!!!");
      }
      DrawMaterialSourcesLine dmsl = new DrawMaterialSourcesLine();
      dmsl.setItsOwner(this.accSettings);
      List<DrawMaterialSourcesLine> drawMaterialSources = getSrvOrm()
        .retrieveListForField(pAddParam, dmsl, "itsOwner");
      this.accSettings.setDrawMaterialSources(drawMaterialSources);
      CogsItemSourcesLine cisl = new CogsItemSourcesLine();
      cisl.setItsOwner(this.accSettings);
      List<CogsItemSourcesLine> cogsItemSources = getSrvOrm()
        .retrieveListForField(pAddParam, cisl, "itsOwner");
      this.accSettings.setCogsItemSources(cogsItemSources);
      AccEntriesSourcesLine aesl = new AccEntriesSourcesLine();
      aesl.setItsOwner(this.accSettings);
      List<AccEntriesSourcesLine> accEntriesSources = getSrvOrm()
        .retrieveListForField(pAddParam, aesl, "itsOwner");
      this.accSettings.setAccEntriesSources(accEntriesSources);
    }
docs: <p>Retrieve Accounting settings from database.</p>
  @param pAddParam additional param
  @throws Exception - an exception