Add serialization in FilesMetadata.java