termsOut.writeInt(bytes.length);
termsOut.write(bytes);
ShiftAddXorSignedStringMap dict = new ShiftAddXorSignedStringMap(termList.iterator(),
new TwoStepsLcpMonotoneMinimalPerfectHashFunction<CharSequence>(termList,
new DictionaryTransformationStrategy(true)));
bytesOut = new ByteArrayOutputStream();
objOut = new ObjectOutputStream(bytesOut);
objOut.writeObject(dict);
objOut.close();