/**
  * Determines if a) the document is at the PaymentMethod route node; and b) the accountingLine is
  * for a travel advance
  *
  * @param document a travel document
  * @param accountingLine the accounting line to validate
  * @return true if the advance payment/payment method is correct and accessibility should not be
  *     checked; false otherwise
  */
 protected boolean isAdvancePaymentMethodException(
     Document document, TemSourceAccountingLine accountingLine) {
   return StringUtils.equals(
           TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE,
           accountingLine.getFinancialDocumentLineTypeCode())
       && document
           .getDocumentHeader()
           .getWorkflowDocument()
           .getCurrentNodeNames()
           .contains(KFSConstants.RouteLevelNames.PAYMENT_METHOD);
 }