private static OFTableFeaturePropType getTableFeaturePropType(OFTableFeatureProp p) { switch (p.getVersion()) { case OF_13: return OFTableFeaturePropTypeSerializerVer13.ofWireValue((short) p.getType()); case OF_14: return OFTableFeaturePropTypeSerializerVer14.ofWireValue((short) p.getType()); default: throw new IllegalArgumentException("OFVersion " + p.getVersion().toString() + " does not support OFTableFeature messages."); } }