GenericRecord record = getRecord(ofpErrorMessageSchema, in);
// TODO Improvs: We plan to get all flags from Avro protocol type... soon... so let it be now just numbers
short type = getShort((GenericData.Fixed)record.get("type"));
short code = getShort((GenericData.Fixed)record.get("code"));
OFMessageErrorRef errorH = builder12.buildError();
errorH.setCode(code);
errorH.setType(type);
return errorH;
}