final Collection devs = dm.getDevices();
final Collection devs = new ArrayList(dm.getDevices());
    protected void startPlugin() throws PluginException {        try {            final DeviceManager dm = DeviceUtils.getDeviceManager();            dm.addListener(this);            final Collection devs = dm.getDevices();            for (Iterator i = devs.iterator(); i.hasNext();) {                addListeners((Device) i.next());            }        } catch (NameNotFoundException ex) {            throw new PluginException(ex);        }    }