93949596979899100101102103
while (tmpEnumeration.hasMoreElements()) { tmpDevice = (Device) tmpEnumeration.nextElement(); if(tmpDevice != null){ try{ tmpDevice.refresh(); } catch (Exception e){} } } }