if (prefix == null) {
throw new CodecConstructionException(
"To little context to decide between codecs.");
} else {
if (byteOrder == null) {
byteOrder = prefix.byteOrder();
} else {
if (byteOrder != prefix.byteOrder()) {
throw new CodecConstructionException("Two distinct types of byte orders are not supported: "
+ "expected " + byteOrder.asText() + ", got "
+ prefix.byteOrder().asText() + " for " + codec);