code: private static DatastreamInfo convertGenDatastreamDefToDatastreamInfo(Datastream ds) {
          return new DatastreamInfo(ds.getID(), ds.getMIMEType(), ds
                  .getFormatURI());
      }
docs: Convert a WSDL-style {@link Datastream} into a local
  {@link DatastreamInfo}.