}
public static final Properties readProperties(DataInput in) throws IOException {
Properties props = new Properties();
MapWritable propsWritable = new MapWritable();
propsWritable.readFields(in);
for (Entry<Writable, Writable> prop : propsWritable.entrySet()) {
String key = prop.getKey().toString();
String value = prop.getValue().toString();
props.put(key,value);
}