modify the xml and java file