should probably be element.setPrettyName(prettyName);