Modifying the xml and java files