@Override public void readFrom(final ChannelBuffer data) { super.readFrom(data); this.statisticType = OFStatisticsType.valueOf(data.readShort(), this.getType()); this.flags = data.readShort(); if (this.statisticsFactory == null) { throw new RuntimeException("OFStatisticsFactory not set"); } this.statistics = this.statisticsFactory.parseStatistics( this.getType(), this.statisticType, data, super.getLengthU() - OFStatisticsMessageBase.MINIMUM_LENGTH); }