Xml Files and Java Files are created and exceptions are handled