groups = new HashSet(1); groups.add(exp.getGroup());
GroupData group = exp.getGroup(); if (group != null) { groups = new HashSet(1); groups.add(group); }
    private JComponent buildCenterComponent()    {        switch (editorType) {            case CREATE:                return doBasic;            case EDIT:                IconManager im = IconManager.getInstance();                JTabbedPane tabs = new JTabbedPane(JTabbedPane.TOP,                                                    JTabbedPane.WRAP_TAB_LAYOUT);                tabs.setAlignmentX(LEFT_ALIGNMENT);                tabs.addTab(PROPERTIES_TITLE,                             im.getIcon(IconManager.PROPERTIES), doBasic);                ExperimenterData exp = getExperimenterData();                Map details = EditorUtil.transformExperimenterData(exp);                Set groups = exp.getGroups();                if (groups == null || groups.size() == 0) {                    groups = new HashSet(1);                    groups.add(exp.getGroup());                }                tabs.addTab(OWNER_TITLE,  im.getIcon(IconManager.OWNER),                            new DOInfo(details, groups));                if (hierarchyObject instanceof ImageData) {                    details = EditorUtil.transformPixelsData(                            ((ImageData) hierarchyObject).getDefaultPixels());                    tabs.addTab(INFO_TITLE, im.getIcon(IconManager.IMAGE),                               new DOInfo(details));                }                return tabs;        }        return null;    }