code: public static ContentViewer getViewer(String type, InputStream data)
              throws IOException {
          ContentViewer viewer = (ContentViewer) s_viewers.get(type);
          if (viewer == null && type.endsWith("+xml")) {
              viewer = (ContentViewer) s_viewers.get("text/xml");
          }
          return viewer.newInstance(type, data, true);
      }
docs: Get a viewer for the given type, initialized with the given data. This
  should only be called if the caller knows there is a viewer for the type.