how to perform serialization in java using property file