Add Configuration constructor in thrift writer for #295.