def pseudo_java_class_name(name)
      result = ''

      name.each_char do |chr|
        if chr =~ JAVA_CLASS_NAME
          result << chr
        elsif chr == JAVA_PACKAGE_SEPARATOR
          result << JAVE_PACKAGE_SEPARATOR_HOMOGLYPH
        else
          chr = chr.unpack('U')[0].to_s(16)
          result << "&#x#{chr};"
        end
      end

      result
    end
def pseudo_java_class_name(name)
      result = ''

      name.each_char do |chr|
        if chr =~ JAVA_CLASS_NAME
          result << chr
        elsif chr == JAVA_PACKAGE_SEPARATOR
          result << JAVE_PACKAGE_SEPARATOR_HOMOGLYPH
        else
          chr = chr.unpack('U')[0].to_s(16)
          result << "&#x#{chr};"
        end
      end

      result
    end
Ruby 1.8-2.1 compatible
 Make a string suitable for parsing by Jenkins JUnit display plugin by escaping any non-valid
 Java class name characters as an XML entity. This prevents Jenkins from interpreting "hi1.2"
 as a package-and-class name.

 @param [String] name
 @return [String] string with all non-alphanumerics replaced with an equivalent XML hex entity