Definition definition = new Definition();
definition.contentId = "input.bam".getBytes();
definition.formatMajor = 1;
definition.formatMinor = 0;
definition.magick = "CRAM".getBytes();
Format format = new FormatFactory().createFormat(definition);
SAMRecord samRecord = null;
CramHeader cramHeader = createCramHeader(reader.getFileHeader());
ByteArrayOutputStream hBaos= new ByteArrayOutputStream() ;
Container hC = new Container() ;