while(enumeration.hasNextElement()) {
int id = enumeration.nextRecordId();
Mucus mucus = new Mucus();
ByteArrayInputStream bin = new ByteArrayInputStream(rms.getRecord(id));
DataInputStream in = new DataInputStream(bin);
mucus.readFrom(in);
mucus.setId(id);
registry.addElement(mucus);
}
System.out.println("MucusUtils.loadFromRMS():"+registry);
return registry;