@Override
  protected void addRoleQualification(Object businessObject, Map<String, String> attributes) {
    super.addRoleQualification(businessObject, attributes);

    CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) businessObject;
    String invoiceDocNumber = writeoffDoc.getFinancialDocumentReferenceInvoiceNumber();
    if (StringUtils.isBlank(invoiceDocNumber)) {
      return;
    }
    CustomerInvoiceDocumentService invoiceService =
        SpringContext.getBean(CustomerInvoiceDocumentService.class);

    Collection<CustomerInvoiceDetail> invoiceDetails =
        invoiceService.getCustomerInvoiceDetailsForCustomerInvoiceDocument(invoiceDocNumber);

    //  adds the chart/account for each account used on the original invoice that will be credited
    // by this
    for (CustomerInvoiceDetail invoiceDetail : invoiceDetails) {
      if (StringUtils.isNotBlank(invoiceDetail.getChartOfAccountsCode())
          && StringUtils.isNotBlank(invoiceDetail.getAccountNumber())) {
        attributes.put(
            KfsKimAttributes.CHART_OF_ACCOUNTS_CODE, invoiceDetail.getChartOfAccountsCode());
        attributes.put(KfsKimAttributes.ACCOUNT_NUMBER, invoiceDetail.getAccountNumber());
      }
    }
  }
 @Override
 public String getChartOfAccountsCode() {
   if (isUsingOrgAcctDefaultWriteoffFAU) {
     return poster.getChartOfAccountsCode();
   } else {
     return postable.getChartOfAccountsCode();
   }
 }
 @Override
 public String getProjectCode() {
   if (isUsingOrgAcctDefaultWriteoffFAU) {
     return poster.getProjectCode();
   } else {
     return postable.getProjectCode();
   }
 }
 @Override
 public String getAccountNumber() {
   if (isUsingOrgAcctDefaultWriteoffFAU) {
     return poster.getAccountNumber();
   } else {
     return postable.getAccountNumber();
   }
 }
 @Override
 public String getOrganizationReferenceId() {
   if (isUsingOrgAcctDefaultWriteoffFAU) {
     return poster.getOrganizationReferenceIdentifier();
   } else {
     return postable.getOrganizationReferenceId();
   }
 }