<p>Convert from string.</p>
@param pAddParam additional params, e.g. IRequestData
to fill owner itsVersion.
@param pStrVal name
@return Enum value
@throws Exception - an exception
510804
@Override
  public final E fromString(final Map<String, Object> pAddParam,
    final String pStrVal) throws Exception {
    if (pStrVal == null || "".equals(pStrVal)) {
      return null;
    }
    return Enum.valueOf(this.enumClass, pStrVal);
  }
914973
protected final PrcSalesInvoiceServiceLineDelete
    createPutPrcSalesInvoiceServiceLineDelete(
      final Map<String, Object> pAddParam) throws Exception {
    PrcSalesInvoiceServiceLineDelete<RS> proc =
      new PrcSalesInvoiceServiceLineDelete<RS>();
    @SuppressWarnings("unchecked")
    IEntityProcessor<SalesInvoiceServiceLine, Long> procDlg =
      (IEntityProcessor<SalesInvoiceServiceLine, Long>)
        this.fctBnEntitiesProcessors
          .lazyGet(pAddParam, PrcEntityPbDelete.class.getSimpleName());
    proc.setSrvOrm(getSrvOrm());
    proc.setPrcAccEntityPbDelete(procDlg);
    proc.setSrvAccSettings(getSrvAccSettings());
    proc.setUtlInvLine(lazyGetUtlSalSrLn(pAddParam));
    //assigning fully initialized object:
    this.processorsMap
      .put(PrcSalesInvoiceServiceLineDelete.class.getSimpleName(), proc);
    return proc;
  }
581917
public final void lazyEvalReplicationMethod(
    final Map<String, Object> pAddParam) throws Exception {
    Long replicationMethodId;
    try {
      replicationMethodId = Long.parseLong(pAddParam
        .get("replicationMethodId").toString());
    } catch (Exception e) {
      throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
        "Wrong or missing parameter replicationMethodId (in pAddParam): "
          + pAddParam.get("replicationMethodId"));
    }
    if (this.replicationMethod == null || !this.replicationMethod
      .getItsId().equals(replicationMethodId)) {
      this.replicationMethod = new ReplicationAccMethod();
      this.replicationMethod.setItsId(replicationMethodId);
      this.replicationMethod = getSrvOrm()
        .retrieveEntity(pAddParam, this.replicationMethod);
      ReplExcludeAccountsDebit ead = new ReplExcludeAccountsDebit();
      ead.setItsOwner(this.replicationMethod);
      this.replicationMethod.setExcludeDebitAccounts(getSrvOrm()
        .retrieveListForField(pAddParam, ead, "itsOwner"));
      ReplExcludeAccountsCredit eac = new ReplExcludeAccountsCredit();
      eac.setItsOwner(this.replicationMethod);
      this.replicationMethod.setExcludeCreditAccounts(getSrvOrm()
        .retrieveListForField(pAddParam, eac, "itsOwner"));
    }
  }
350194
protected final PrcAssignItemsToCatalog<RS>
    lazyGetPrcAssignItemsToCatalog(
      final Map<String, Object> pAddParam) throws Exception {
    String beanName = PrcAssignItemsToCatalog.class.getSimpleName();
    @SuppressWarnings("unchecked")
    PrcAssignItemsToCatalog<RS> proc = (PrcAssignItemsToCatalog<RS>)
      this.processorsMap.get(beanName);
    if (proc == null) {
      proc = new PrcAssignItemsToCatalog<RS>();
      proc.setSrvOrm(getSrvOrm());
      proc.setSrvEntitiesPage(getSrvEntitiesPage());
      //assigning fully initialized object:
      this.processorsMap.put(beanName, proc);
      this.logger.info(null, FctBnTradeProcessors.class,
        beanName + " has been created.");
    }
    return proc;
  }
1372817
@Override
  public final T fromString(final Map<String, Object> pAddParam,
    final String pStrVal) throws Exception {
    T entity = null;
    if (pStrVal != null && !"".equals(pStrVal)) {
      entity = this.entityClass.newInstance();
      ID idVal = this.idConverter.fromString(pAddParam, pStrVal);
      this.setterId.invoke(entity, idVal);
    }
    return entity;
  }
773284
protected final PrcSalesReturnLineSave<RS> lazyGetPrcSalesReturnLineSave(
    final Map<String, Object> pAddParam) throws Exception {
    @SuppressWarnings("unchecked")
    PrcSalesReturnLineSave<RS> proc = (PrcSalesReturnLineSave<RS>)
      this.processorsMap.get(PrcSalesReturnLineSave.class.getSimpleName());
    if (proc == null) {
      proc = new PrcSalesReturnLineSave<RS>();
      proc.setSrvAccSettings(getSrvAccSettings());
      proc.setSrvOrm(getSrvOrm());
      proc.setUtlInvLine(lazyGetUtlSalRetGdLn(pAddParam));
      proc.setSrvWarehouseEntry(getSrvWarehouseEntry());
      //assigning fully initialized object:
      this.processorsMap
        .put(PrcSalesReturnLineSave.class.getSimpleName(), proc);
    }
    return proc;
  }
101849
protected final PrcAdditionCostLineSave<RS> lazyGetPrcAdditionCostLineSave(
    final Map<String, Object> pAddParam) throws Exception {
    @SuppressWarnings("unchecked")
    PrcAdditionCostLineSave<RS> proc = (PrcAdditionCostLineSave<RS>)
      this.processorsMap.get(PrcAdditionCostLineSave.class.getSimpleName());
    if (proc == null) {
      proc = new PrcAdditionCostLineSave<RS>();
      proc.setSrvAccSettings(getSrvAccSettings());
      proc.setSrvOrm(getSrvOrm());
      proc.setSrvDatabase(getSrvDatabase());
      //assigning fully initialized object:
      this.processorsMap
        .put(PrcAdditionCostLineSave.class.getSimpleName(), proc);
    }
    return proc;
  }
685300
protected final UtlInvBase<RS> lazyGetUtlInvBase(
      final Map<String, Object> pAddParam) throws Exception {
    UtlInvBase<RS> utlInvBs = this.utlInvBase;
    if (utlInvBs == null) {
      utlInvBs = new UtlInvBase<RS>();
      utlInvBs.setSrvOrm(getSrvOrm());
      utlInvBs.setLogger(getLogger());
      utlInvBs.setSrvDatabase(getSrvDatabase());
      utlInvBs.setSrvNumberToString(getSrvNumberToString());
      //assigning fully initialized object:
      this.utlInvBase = utlInvBs;
    }
    return utlInvBs;
  }
1164049
@Override
  public final Date fromIso8601DateTimeSecNoTz(final String pDateStr,
    final Map<String, Object> pAddParam) throws Exception {
    return this.dateTimeSecNoTzFormatIso8601.parse(pDateStr);
  }
1024666
protected final PrcWageCopy<RS> createPutPrcWageCopy(
    final Map<String, Object> pAddParam) throws Exception {
    PrcWageCopy<RS> proc = new PrcWageCopy<RS>();
    @SuppressWarnings("unchecked")
    IEntityProcessor<Wage, Long> procDlg = (IEntityProcessor<Wage, Long>)
      this.fctBnEntitiesProcessors
        .lazyGet(pAddParam, PrcEntityPbCopy.class.getSimpleName());
    proc.setPrcAccEntityPbCopy(procDlg);
    //assigning fully initialized object:
    this.processorsMap.put(PrcWageCopy.class.getSimpleName(), proc);
    return proc;
  }
1083501
protected final UtlInvLine<RS, PurchaseReturn, PurchaseReturnLine,
    PurchaseReturnTaxLine, PurchaseReturnGoodsTaxLine> lazyGetUtlPurRetGdLn(
      final Map<String, Object> pAddParam) throws Exception {
    UtlInvLine<RS, PurchaseReturn, PurchaseReturnLine,
      PurchaseReturnTaxLine, PurchaseReturnGoodsTaxLine> utlInvLn = this
        .utlPurRetGdLn;
    if (utlInvLn == null) {
      utlInvLn = new UtlInvLine<RS, PurchaseReturn, PurchaseReturnLine,
        PurchaseReturnTaxLine, PurchaseReturnGoodsTaxLine>();
      utlInvLn.setUtlInvBase(lazyGetUtlInvBase(pAddParam));
      utlInvLn.setInvTxMeth(lazyGetPurRetTxMeth(pAddParam));
      utlInvLn.setIsMutable(false);
      utlInvLn.setNeedMkTxCat(false);
      utlInvLn.setLtlCl(PurchaseReturnGoodsTaxLine.class);
      utlInvLn.setDstTxItLnCl(DestTaxGoodsLn.class);
      FactoryPersistableBase<PurchaseReturnGoodsTaxLine> fctLtl =
        new FactoryPersistableBase<PurchaseReturnGoodsTaxLine>();
      fctLtl.setObjectClass(PurchaseReturnGoodsTaxLine.class);
      fctLtl.setDatabaseId(getSrvDatabase().getIdDatabase());
      utlInvLn.setFctLineTxLn(fctLtl);
      //assigning fully initialized object:
      this.utlPurRetGdLn = utlInvLn;
    }
    return utlInvLn;
  }
404597
@Override
  public final DatabaseWriterXml<RS> create(
    final Map<String, Object> pAddParam) throws Exception {
    DatabaseWriterXml<RS> dbWriterXmlFullImport = new DatabaseWriterXml<RS>();
    SrvEntityWriterXml srvEntityWriterXml = new SrvEntityWriterXml();
    SrvFieldWriterXmlStd srvFieldWriterXmlStd = new SrvFieldWriterXmlStd();
    srvFieldWriterXmlStd.setUtilXml(this.factoryAppBeans.lazyGetUtilXml());
    SrvFieldHasIdWriterXml srvFieldHasIdWriterXml =
      new SrvFieldHasIdWriterXml();
    srvFieldHasIdWriterXml.setUtilXml(this.factoryAppBeans.lazyGetUtilXml());
    srvEntityWriterXml.setUtlReflection(this.factoryAppBeans
      .lazyGetUtlReflection());
    Map<String, ISrvFieldWriter> fieldsWritersMap =
      new HashMap<String, ISrvFieldWriter>();
    fieldsWritersMap.put("SrvFieldWriterXmlStd", srvFieldWriterXmlStd);
    fieldsWritersMap.put("SrvFieldHasIdWriterXml", srvFieldHasIdWriterXml);
    srvEntityWriterXml.setFieldsWritersMap(fieldsWritersMap);
    srvEntityWriterXml.setMngSettings(this.factoryAppBeans
      .lazyGetMngSettingsGetDbCopy());
    dbWriterXmlFullImport.setLogger(this.factoryAppBeans.lazyGetLogger());
    dbWriterXmlFullImport.setSrvEntityWriter(srvEntityWriterXml);
    dbWriterXmlFullImport.setSrvDatabase(this.factoryAppBeans
      .lazyGetSrvDatabase());
    dbWriterXmlFullImport.setSrvOrm(this.factoryAppBeans.lazyGetSrvOrm());
    return dbWriterXmlFullImport;
  }
473977
protected final PrcAbout<RS> lazyGetPrcAbout(
      final Map<String, Object> pAddParam) throws Exception {
    @SuppressWarnings("unchecked")
    PrcAbout<RS> proc = (PrcAbout<RS>) this.processorsMap
      .get(PrcAbout.class.getSimpleName());
    if (proc == null) {
      proc = new PrcAbout<RS>();
      proc.setSrvOrm(getSrvOrm());
      //assigning fully initialized object:
      this.processorsMap
        .put(PrcAbout.class.getSimpleName(), proc);
    }
    return proc;
  }
853316
@Override
  public final String toIso8601DateTimeNoTz(final Date pDate,
    final Map<String, Object> pAddParam) throws Exception {
    return this.dateTimeNoTzFormatIso8601.format(pDate);
  }
1068882
@Override
  public final String toIso8601DateTimeSecNoTz(final Date pDate,
    final Map<String, Object> pAddParam) throws Exception {
    return this.dateTimeSecNoTzFormatIso8601.format(pDate);
  }
1194134
@Override
  public final void process(final Map<String, Object> pAddParam,
    final IRequestData pRequestData) throws Exception {
    this.i18nRequestHandler.handleDataChanged();
  }
879967
public byte[] dataSmResp(int sequenceNumber, String messageId,
            OptionalParameter... optionalParameters) throws PDUStringException {
        StringValidator.validateString(messageId, StringParameter.MESSAGE_ID);

        PDUByteBuffer buf = new PDUByteBuffer(SMPPConstant.CID_DATA_SM_RESP, 0,
                sequenceNumber);
        buf.append(messageId);

        return buf.toBytes();
    }