Make getPrettyName public and add Javadoc