code: protected String parseElementAfterString(StringBuilder content, String separator)
      {
          String element = null;
  
          // Find the first non escaped separator (starting from the end of the content buffer).
          int index = content.lastIndexOf(separator);
          while (index != -1) {
              // Check if the element is found and it's not escaped.
              if (!shouldEscape(content, index)) {
                  element = content.substring(index + separator.length()).trim();
                  content.delete(index, content.length());
                  break;
              }
  
              if (index > 0) {
                  index = content.lastIndexOf(separator, index - 1);
              } else {
                  break;
              }
          }
  
          return element;
      }
docs: Find out the element located to the right of the passed separator.
  
  @param content the string to parse. This parameter will be modified by the method to remove the parsed content.
  @param separator the separator string to locate the element
  @return the parsed element or null if the separator string wasn't found