Buggy code:
@ Named ( "feedback2013Controller" ) @ SessionScoped public class Feedback2013Controller implements Serializable { private Feedback2013 current ; private DataModel items = null ; @ EJB private Feedback2013Facade ejbFacade ; private PaginationHelper pagination ; private int selectedItemIndex ; private int [ ] ra = new int [ 6 ] ; private double performanceIndex ; private List < Feedback2013 > feedback2013List ; private FacultySubject idFacultySubject ; private DefaultMenuModel model ; private Faculty selectedFaculty ; private String fbGraphUrl ; private FeedbackType feedbackType ; public Faculty getSelectedFaculty ( ) { } public void setSelectedFaculty ( Faculty selectedFaculty ) { } public DefaultMenuModel getModel ( ) { } public void setModel ( DefaultMenuModel model ) { } public String questionGraph ( ) { } @ PostConstruct public void init ( ) { model = new DefaultMenuModel ( ) ; FacesContext facesContext = FacesContext . getCurrentInstance ( ) ; String userName = facesContext . getExternalContext ( ) . getRemoteUser ( ) ; FeedbackTypeController ftController = Feedback2013Controller . findBean ( "feedbackTypeController" ) ; FacultySubjectController fsController = Feedback2013Controller . findBean ( "facultySubjectController" ) ; FacultyController fController = Feedback2013Controller . findBean ( "facultyController" ) ; Faculty loggedUser = fController . getFaculty ( userName ) ; for ( FeedbackType item : ftController . getItemsDesc ( ) ) { <START_BUG> DefaultSubMenu tempSubmenu = new DefaultSubMenu ( ( ( ( item . getDescr ( ) ) + "<seq2seq4repair_space>" ) + ( item . getYr ( ) ) ) ) ; <END_BUG> for ( FacultySubject fs : fsController . getItemsByYear ( loggedUser , item . getYr ( ) , item . getEven ( ) ) ) { DefaultMenuItem menuItem = new DefaultMenuItem ( ( ( ( ( ( fs . getIdSubject ( ) . getSubjectCode ( ) ) + "//" ) + ( fs . getDivision ( ) ) ) + "//" ) + ( fs . getBatchDetail ( ) ) ) ) ; menuItem . setCommand ( ( ( ( ( "#{feedback2013Controller.getByUserName(facultySubjectController.getIdFacSub(" + ( fs . getIdFacultySubject ( ) ) ) + "),feedbackTypeController.getFeedbackType(" ) + ( item . getIdFeedbackType ( ) ) ) + "))}" ) ) ; menuItem . setUpdate ( ":layoutPanel:fbDetails<seq2seq4repair_space>:layoutPanel:fbComments<seq2seq4repair_space>:layoutPanel:fbGraph" ) ; tempSubmenu . addElement ( menuItem ) ; } model . addElement ( tempSubmenu ) ; } } public void recreateMenuModel ( ) { } public Feedback2013Controller ( ) { } public Feedback2013 getSelected ( ) { } private Feedback2013Facade getFacade ( ) { } public PaginationHelper getPagination ( ) { } public String prepareList ( ) { } public String prepareView ( ) { } public String prepareCreate ( ) { } public double getPerformanceIndex ( ) { } public void setPerformanceIndex ( double performanceIndex ) { } public int [ ] getRa ( ) { } public void setRa ( int [ ] ra ) { } public List < Feedback2013 > getFeedback2013List ( ) { } public void setFeedback2013List ( List < Feedback2013 > feedback2013List ) { } public FacultySubject getIdFacultySubject ( ) { } public void getByUserName ( FacultySubject idFacultySubject , FeedbackType fType ) { } public void feedbackXLSExport ( ) { } public String create ( ) { } public String prepareEdit ( ) { } public String update ( ) { } public String destroy ( ) { } public String destroyAndView ( ) { } private void performDestroy ( ) { } private void updateCurrentItem ( ) { } public DataModel getItems ( ) { } private void recreateModel ( ) { } private void recreatePagination ( ) { } public String next ( ) { } public String previous ( ) { } public SelectItem [ ] getItemsAvailableSelectMany ( ) { } public SelectItem [ ] getItemsAvailableSelectOne ( ) { } public Feedback2013 getFeedback2013 ( Long id ) { } @ SuppressWarnings ( "unchecked" ) public static < T > T findBean ( String beanName ) { } public String getFbGraphUrl ( ) { } public void setFbGraphUrl ( String fbGraphUrl ) { } public FeedbackType getFeedbackType ( ) { } public void setFeedbackType ( FeedbackType feedbackType ) { } @ FacesConverter ( forClass = Feedback2013 . class ) public static class Feedback2013ControllerConverter implements Converter { @ Override public Object getAsObject ( FacesContext facesContext , UIComponent component , String value ) { } Long getKey ( String value ) { } String getStringKey ( Long value ) { } @ Override public String getAsString ( FacesContext facesContext , UIComponent component , Object object ) { } } }

Fix:
DefaultSubMenu tempSubmenu = new DefaultSubMenu ( item . getDescr ( ) ) ;