add java syntax update for nested poms