icf.setImages(images);
for (int j = 0; j < gid.getCount(); j++) {
GroupIconDirectoryEntry gide = gid.getEntry(j);
IconDirectoryEntry ide = new IconDirectoryEntry();
ide.copyFrom(gide);
icd.add(ide);
ResourceEntry[] icos = ResourceHelper.findResources(rd,
ResourceType.ICON, gide.getId());
if (icos == null || icos.length != 1) {
throw new IOException("Unexpected icons in resource file");