refactoring of xml and java method names