Update FileManager.java

Make the methods generic to XMLFile, other class objects could be (de)serialized to XML with these methodes.