Serialization and deserialization of Applications