Fixed cast in the javadoc comment creating action