code: public static boolean isTransactionSegment(String streamSegmentName) {
          // Check to see if the given name is a properly formatted Transaction.
          int endOfStreamNamePos = streamSegmentName.lastIndexOf(TRANSACTION_DELIMITER);
          if (endOfStreamNamePos < 0 || endOfStreamNamePos + TRANSACTION_DELIMITER.length() + TRANSACTION_ID_LENGTH > streamSegmentName.length()) {
              return false;
          }
          return true;
      }
docs: Checks if the given stream segment name is formatted for a Transaction Segment or regular segment.
  
  @param streamSegmentName The name of the StreamSegment to check for transaction delimiter.
  @return true if stream segment name contains transaction delimiter, false otherwise.