Java Class for conversion from a ResultSet MySQL to a XML file/response