throw new UnsupportedDataTypeException();
throw new UnsupportedDataTypeException(ods.mimeType);
    public void writeTo(OutputStream os) throws IOException {        if (ds instanceof ObjectDataSource) {            ObjectDataSource ods = (ObjectDataSource) ds;            DataContentHandler dch = getDataContentHandler();            if (dch == null) {                throw new UnsupportedDataTypeException();            }            dch.writeTo(ods.data, ods.mimeType, os);        } else {            byte[] buffer = new byte[1024];            InputStream is = getInputStream();            try {                int count;                while ((count = is.read(buffer)) != -1) {                    os.write(buffer, 0, count);                }            } finally {                is.close();            }        }    }