DOEditor editor = EditorFactory.getEditor();
EditorUI editor = EditorFactory.getEditor();
    public void setDataObjectThumbnail(BufferedImage thumbnail)    {        if (model.getState() != LOADING_THUMBNAIL)            throw new IllegalStateException("This method can only be invoked" +                    " in the LOADING_THUMBNAIL state.");        if (thumbnail == null)            throw new IllegalArgumentException("No thumbnail.");        if (model.getEditorType() == CLASSIFIER_EDITOR) {            Classifier classifier = ClassifierFactory.getClassifier();            if (classifier == null) return;            classifier.setThumbnail(thumbnail);        } else {            DOEditor editor = EditorFactory.getEditor();            if (editor == null) return;            editor.setThumbnail(thumbnail);        }        model.setState(READY);    }