private static int detectEndXml(StringBuilder builder, int buffLength, int startPos,
            String keyword, int keywordLength) {
        if (buffLength < startPos + keywordLength + 3) {
            return -1;
        }

        int passwordEnd = StringUtils.indexOfIgnoreCase(builder, keyword, startPos);
        if (passwordEnd > 0 && builder.charAt(passwordEnd - 1) == '/' && builder.charAt(passwordEnd - 2) == '<') {
            return passwordEnd - 2;
        }

        return -1;
    }
detect the end position of sensitive data in xml

@param builder raw data
@param buffLength the length of raw data
@param startPos the start position of sensitive data
@param keyword the keyword of sensitive data
@param keywordLength the length of keyword
@return the end position os sensitive data
inlong-common/src/main/java/org/apache/inlong/common/util/MaskDataUtils.java