public JHeader() {
super(Type.POINTER);
order(ByteOrder.BIG_ENDIAN); // network byte order by default
state = new State(Type.POINTER);
final JProtocol protocol = JProtocol.valueOf(getClass());
AnnotatedHeader header;
if (protocol != null) {
this.id = protocol.getId();
header = JRegistry.lookupAnnotatedHeader(protocol);
} else {
this.id = JRegistry.lookupId(getClass());
header = JRegistry.lookupAnnotatedHeader(getClass());