version = ois.readLong();
lastAccess = ois.readLong();
maxIdleTime = ois.readLong();
isNew = ois.readBoolean();
int len = ois.readInt();
state = new byte[len];
int index = 0;
for (int remaining = len; remaining > 0;) {
int count = ois.read(state, index, remaining);