code: public MIMETypedStream viewMethodIndex() throws ServerException {
          // sdp: the dissemination index is disabled for service definition and deployment objects
          // so send back a message saying so.
          if (reader.hasContentModel(Models.SERVICE_DEFINITION_3_0)
                  || reader.hasContentModel(Models.SERVICE_DEPLOYMENT_3_0)) {
              return noMethodIndexMsg();
          }
  
          // get xml expression of method definitions
          ObjectMethodsDef[] methods =
                  m_access.listMethods(context,
                                       reader.GetObjectPID(),
                                       asOfDateTime);
          ReadableCharArrayWriter buffer = new ReadableCharArrayWriter(1024);
          ObjectInfoAsXML
          .getMethodIndex(reposBaseURL,
                  reader.GetObjectPID(),
                  methods,
                  asOfDateTime,
                  buffer);
          buffer.close();
          Reader in = buffer.toReader();
  
          // transform the method definitions xml to an html view
          try {
              ReadableByteArrayOutputStream bytes =
                      new ReadableByteArrayOutputStream(2048);
              PrintWriter out = new PrintWriter(
                      new OutputStreamWriter(bytes, Charset.forName("UTF-8")));
              File xslFile =
                      new File(reposHomeDir, "access/listMethods.xslt");
              Templates template =
                      XmlTransformUtility.getTemplates(xslFile);
              Transformer transformer = template.newTransformer();
              transformer.setParameter("fedora", context
                      .getEnvironmentValue(Constants.FEDORA_APP_CONTEXT_NAME));
              transformer.transform(new StreamSource(in), new StreamResult(out));
              out.close();
              return new MIMETypedStream("text/html", bytes.toInputStream(),
                      null, bytes.length());
          } catch (Exception e) {
              throw new DisseminationException("[DefaultDisseminatorImpl] had an error "
                      + "in transforming xml for viewItemIndex. "
                      + "Underlying exception was: " + e.getMessage());
          }
      }
docs: Returns an HTML rendering of the Dissemination Index for the object. The
  Dissemination Index is a list of method definitions that represent all
  disseminations possible on the object. The Dissemination Index is
  returned as HTML in a presentation-oriented format. This is accomplished
  by doing an XSLT transform on the XML that is obtained from listMethods
  in API-A.
  
  @return html packaged as a MIMETypedStream
  @throws ServerException