return nextId;
}
private void write(Object obj, DataContainer output) throws IOException {
Class objClass = obj.getClass();
TypeModel typeModel = context.getTypeDomain().getTypeModel(objClass);
//
if (typeModel == null) {
throw new NotSerializableException("Object " + obj + " does not have its type described");
}