@Override public boolean visitRelationshipGroupCommand(Command.RelationshipGroupCommand command) throws IOException { long id = channel.getLong(); byte inUseByte = channel.get(); boolean inUse = inUseByte == Record.IN_USE.byteValue(); if (inUseByte != Record.IN_USE.byteValue() && inUseByte != Record.NOT_IN_USE.byteValue()) { throw new IOException("Illegal in use flag: " + inUseByte); } int type = channel.getShort(); RelationshipGroupRecord record = new RelationshipGroupRecord(id, type); record.setInUse(inUse); record.setNext(channel.getLong()); record.setFirstOut(channel.getLong()); record.setFirstIn(channel.getLong()); record.setFirstLoop(channel.getLong()); record.setOwningNode(channel.getLong()); command.init(record); return false; }