code: public static boolean hasViewer(String type) {
          return s_viewers.containsKey(type) || type.endsWith("+xml")
                  && s_viewers.containsKey("text/xml");
      }
docs: Can the factory provide a viewer for the given type?