}
}
private void addPaymentMeansTokens(PaymentMeansType paymentMeansType, boolean supplierParty) {
if (supplierParty) {
template.addToken(new Token(TextLabel.SUPPLIER_BANK_NAME_LABEL.toLowerCase(),
TextLabel.SUPPLIER_BANK_NAME_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.SUPPLIER_BANK_NAME.toLowerCase(),
InvoiceTypeParser.parseFinancialInstitutionName(paymentMeansType.getPayeeFinancialAccount())));
template.addToken(new Token(
TextLabel.SUPPLIER_BANK_ACCOUNT_LABEL.toLowerCase(),
TextLabel.SUPPLIER_BANK_ACCOUNT_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.SUPPLIER_BANK_ACCOUNT.toLowerCase(),
InvoiceTypeParser.parseFinancialAccountID(paymentMeansType.getPayeeFinancialAccount())));
template.addToken(new Token(TextLabel.SUPPLIER_BANK_BIC_LABEL.toLowerCase(),
TextLabel.SUPPLIER_BANK_BIC_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.SUPPLIER_BANK_BIC.toLowerCase(),
InvoiceTypeParser.parseFinancialInstitutionID(paymentMeansType.getPayeeFinancialAccount())));
template.addToken(new Token(
TextLabel.SUPPLIER_BANK_ADDRESS_LABEL.toLowerCase(),
TextLabel.SUPPLIER_BANK_ADDRESS_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.SUPPLIER_BANK_ADDRESS.toLowerCase(),
InvoiceTypeParser.parseFinancialInstitutionBranchAddress(paymentMeansType.getPayeeFinancialAccount())));
} else {
template.addToken(new Token(TextLabel.CUSTOMER_BANK_NAME_LABEL.toLowerCase(),
TextLabel.CUSTOMER_BANK_NAME_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.CUSTOMER_BANK_NAME.toLowerCase(),
InvoiceTypeParser.parseFinancialInstitutionName(paymentMeansType.getPayeeFinancialAccount())));
template.addToken(new Token(
TextLabel.CUSTOMER_BANK_ACCOUNT_LABEL.toLowerCase(),
TextLabel.CUSTOMER_BANK_ACCOUNT_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.CUSTOMER_BANK_ACCOUNT.toLowerCase(),
InvoiceTypeParser.parseFinancialAccountName(paymentMeansType.getPayeeFinancialAccount())));
template.addToken(new Token(TextLabel.CUSTOMER_BANK_BIC_LABEL.toLowerCase(),
TextLabel.CUSTOMER_BANK_BIC_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.CUSTOMER_BANK_BIC.toLowerCase(),
InvoiceTypeParser.parseFinancialInstitutionID(paymentMeansType.getPayeeFinancialAccount())));
template.addToken(new Token(
TextLabel.CUSTOMER_BANK_ADDRESS_LABEL.toLowerCase(),
TextLabel.CUSTOMER_BANK_ADDRESS_LABEL.toString(locale)));
template.addToken(new Token(TextLabel.CUSTOMER_BANK_ADDRESS.toLowerCase(),
InvoiceTypeParser.parseFinancialInstitutionBranchAddress(paymentMeansType.getPayeeFinancialAccount())));
}
}