public void readData(DataInput in) throws IOException {
readOnly=in.readBoolean();
int nbMessages=in.readInt();
heuristicMessages=new ArrayList<HeuristicMessage>(nbMessages);
for (int i = 0; i < nbMessages; i++) {
heuristicMessages.add(new StringHeuristicMessage(in.readUTF()));
}
}