if (name.length() > 255) { UserNotifier un = HiViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Editor", "The name is too long. Cannot be more " + "than 255 characters long."); uiDelegate.resetName(); return; }
    void finish()    {        if (!(uiDelegate.isEdit())) return;        String name = uiDelegate.getObjectName();        if (name == null || name.length() == 0) return;        DataObject object = fillDataObject();        if (object == null) return;        model.saveObject(object);    }