*/
public void parse(InputStream xml, List<Properties> sepaResults)
{
Document doc = JAXB.unmarshal(xml, Document.class);
CustomerCreditTransferInitiationV03 pain = doc.getCstmrCdtTrfInitn();
if (pain == null)
return;
//Payment Information
List<PaymentInstructionInformationSCT> pmtInfs = pain.getPmtInf();
for (PaymentInstructionInformationSCT pmtInf : pmtInfs)
{
//Payment Information - Credit Transfer Transaction Information
List<CreditTransferTransactionInformationSCT> txList = pmtInf.getCdtTrfTxInf();
for (CreditTransferTransactionInformationSCT tx : txList)
{
Properties prop = new Properties();
put(prop,Names.PMTINFID,pmtInf.getPmtInfId());
put(prop,Names.SRC_NAME, pain.getGrpHdr().getInitgPty().getNm());
put(prop,Names.SRC_IBAN, pmtInf.getDbtrAcct().getId().getIBAN());
put(prop,Names.SRC_BIC, pmtInf.getDbtrAgt().getFinInstnId().getBIC());
put(prop,Names.DST_NAME, tx.getCdtr().getNm());
put(prop,Names.DST_IBAN, tx.getCdtrAcct().getId().getIBAN());