doc.getPain00800101().getGrpHdr().getInitgPty().setNm(sepaParams.getProperty("src.name"));
//Payment Information
ArrayList<PaymentInstructionInformationSDD> pmtInfs = (ArrayList<PaymentInstructionInformationSDD>) doc.getPain00800101().getPmtInf();
PaymentInstructionInformationSDD pmtInf = new PaymentInstructionInformationSDD();
pmtInfs.add(pmtInf);
pmtInf.setPmtInfId(pmtInfId != null && pmtInfId.length() > 0 ? pmtInfId : sepaId);
pmtInf.setPmtMtd(PaymentMethod2Code.DD);
pmtInf.setReqdColltnDt(SepaUtil.createCalendar(sepaParams.getProperty("targetdate")));
pmtInf.setCdtr(new PartyIdentificationSDD2());
pmtInf.setCdtrAcct(new CashAccountSDD1());
pmtInf.setCdtrAgt(new BranchAndFinancialInstitutionIdentificationSDD1());
//Payment Information
pmtInf.getCdtr().setNm(sepaParams.getProperty("src.name"));
//Payment Information
pmtInf.getCdtrAcct().setId(new AccountIdentificationSDD());
pmtInf.getCdtrAcct().getId().setIBAN(sepaParams.getProperty("src.iban"));
//Payment Information
pmtInf.getCdtrAgt().setFinInstnId(new FinancialInstitutionIdentificationSDD1());
pmtInf.getCdtrAgt().getFinInstnId().setBIC(sepaParams.getProperty("src.bic"));
//Payment Information - ChargeBearer
pmtInf.setChrgBr(ChargeBearerTypeSDDCode.SLEV);
pmtInf.setPmtTpInf(new PaymentTypeInformationSDD());
pmtInf.getPmtTpInf().setSeqTp(SequenceType1Code.fromValue(sepaParams.getProperty("sequencetype")));
pmtInf.getPmtTpInf().setSvcLvl(new ServiceLevelSDD());
pmtInf.getPmtTpInf().getSvcLvl().setCd(ServiceLevelSDDCode.SEPA);
pmtInf.getPmtTpInf().setLclInstrm(new LocalInstrumentSDD());
String type = sepaParams.getProperty("type");
try
{
pmtInf.getPmtTpInf().getLclInstrm().setCd(LocalInstrumentCodeSDD.fromValue(type));
}
catch (IllegalArgumentException e)
{
throw new HBCI_Exception("Lastschrift-Art " + type + " wird in der SEPA-Version 008.002.01 Ihrer Bank noch nicht unterst�tzt",e);
}
//Payment Information - Credit Transfer Transaction Information
ArrayList<DirectDebitTransactionInformationSDD> drctDbtTxInfs = (ArrayList<DirectDebitTransactionInformationSDD>) pmtInf.getDrctDbtTxInf();
if (maxIndex != null)
{
for (int tnr = 0; tnr <= maxIndex; tnr++)
{
drctDbtTxInfs.add(createDirectDebitTransactionInformationSDD(sepaParams, tnr));