DOEditor editor = EditorFactory.getEditor();
EditorUI editor = EditorFactory.getEditor();
    public void setAnnotations(Map map)    {        if (model.getState() != LOADING_ANNOTATION)            throw new IllegalStateException("This method can only be invoked" +                    " in the LOADING_ANNOTATION state.");        if (map == null) throw new IllegalArgumentException("No annotations.");        DOEditor editor = EditorFactory.getEditor();        if (editor == null) return;        editor.setAnnotations(map);        view.getLoadingWindow().setVisible(false);        if (editor.hasThumbnail())             model.fireThumbnailLoading();        else model.setState(READY);        fireStateChange();        view.addComponent(editor);     }