DataHandler dh = model.classifyImageObjects(images, mode);
DataHandler dh = model.classifyImageObjects(view, images, mode);
    public void showClassifier(ImageData[] images, int mode)    {        switch (model.getState()) {            //case READY:            case DISCARDED:                throw new IllegalStateException("This method should cannot " +                "be invoked in the DISCARDED state.");        }                if (images == null)             throw new IllegalArgumentException("Object cannot be null.");        if (images.length == 0)            throw new IllegalArgumentException("No images to classify or " +                    "declassify.");        DataHandler dh = model.classifyImageObjects(images, mode);        dh.addPropertyChangeListener(controller);        dh.activate();                /*        model.cancel(); // cancel annotation loader or thumbnail loader        removeEditor();        model.setEditorType(CLASSIFIER_EDITOR);        Classifier classifier = ClassifierFactory.getClassifier(this, mode,                                                     images);        classifier.addPropertyChangeListener(controller);        classifier.activate();        view.addComponent(classifier.getUI());        */    }