Buggy code:
@ Controller @ Named ( "pTController" ) public class PTController { private UserBean userBean ; @ Autowired private TreeBean treeBean ; private TreeModel treeModel = null ; private PTModel pTModel = null ; private SubFolder currentSelection = null ; private PTBean pTBean ; private BriefBean briefBean ; private UserUtil userUtil = null ; private ApplicationContext applicationContext ; @ Autowired public void setApplicationContext ( ApplicationContext applicationContext ) { } private SearchUtil searchUtil = null ; public PTBean getpTBean ( ) { } @ Autowired public void setpTBean ( PTBean pTBean ) { } public void setCurrentSelection ( SubFolder currentSelection ) { } @ Autowired public void setUserBean ( UserBean userBean ) { } private void initUserUtil ( ) { } @ RequestMapping ( "//save-job" ) public String saveSearchToPT ( HttpServletRequest request ) { System . out . println ( "Inside<seq2seq4repair_space>ProjectTrackerController.seaveSearchToPT" ) ; try { if ( ( userUtil ) == null ) initUserUtil ( ) ; if ( ! ( userUtil . checkUserSession ( ) ) ) return userUtil . getLogoutPage ( ) ; pTModel = new PTModel ( ) ; String jobTitle = null ; int pubId = 0 ; jobTitle = request . getParameter ( "job_title" ) ; pubId = Integer . parseInt ( request . getParameter ( "pubId" ) ) ; pTBean . setCdcId ( request . getParameter ( "cdcid" ) ) ; String [ ] temp = pTBean . getCdcId ( ) . split ( "<seq2seq4repair_space>" ) ; System . out . println ( ( "Temp" + temp ) ) ; if ( ( temp . length ) > 0 ) { pTBean . setShortCdcId ( temp [ 1 ] ) ; } else { pTBean . setShortCdcId ( request . getParameter ( "cdcid" ) ) ; } pTBean . setSecId ( Integer . parseInt ( request . getParameter ( "secId" ) ) ) ; <START_BUG> pTBean . setSaveJobPid ( request . getParameter ( "saveJobPid" ) ) ; <END_BUG> pTBean . setLoginId ( userBean . getLoginId ( ) ) ; pTBean . setJobTitle ( jobTitle ) ; pTBean . setPtAllowed ( pTModel . getPTAllowed ( pTBean . getLoginId ( ) ) ) ; pTBean . setPubId ( pubId ) ; pTBean . setJobCount ( pTModel . getJobCount ( pTBean . getLoginId ( ) ) ) ; pTBean . setSingleJob ( pTModel . getJob ( pTBean . getLoginId ( ) , pTBean . getCdcId ( ) ) ) ; System . out . println ( pTBean . getSingleJob ( ) ) ; if ( ( ( pTBean . getSingleJob ( ) ) != null ) && ( ( pTBean . getSingleJob ( ) . size ( ) ) != 0 ) ) { pTBean . setJobFolderName ( pTModel . getJobFolderName ( pTBean . getLoginId ( ) , ( ( int ) ( pTBean . getSingleJob ( ) . get ( 0 ) ) ) ) ) ; System . out . println ( pTBean . getJobFolderName ( ) ) ; } pTBean . setSingleJobContentId ( pTModel . getSingleJobDetails ( pTBean . getLoginId ( ) , pTBean . getCdcId ( ) ) ) ; System . out . println ( pTBean . getSingleJobContentId ( ) ) ; refreshTreeBean ( ) ; makeNULL ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } System . out . println ( "End<seq2seq4repair_space>Of<seq2seq4repair_space>saveSearchToPT" ) ; return "//online_product//project_tracker//save_job.jsf" ; } @ RequestMapping ( "//saved-projects" ) public String savedProjects ( HttpServletRequest request ) { } @ RequestMapping ( "//updated-projects" ) public String updatedProjects ( HttpServletRequest request ) { } public void createTree ( HttpServletRequest request ) { } public void deleteTree ( HttpServletRequest request ) { } public void editTree ( HttpServletRequest request ) { } public void selectionChanged ( TreeSelectionChangeEvent selectionChangeEvent ) { } public void saveJobAction ( HttpServletRequest request ) { } @ RequestMapping ( "//copy-master-pt-jobs" ) public String copyMasterPTJobs ( HttpServletRequest request ) { } @ RequestMapping ( "//move-ptjobs" ) public String movePTJobs ( HttpServletRequest request ) { } public void makeNULL ( ) { } public void refreshTreeBean ( ) { } public TreeBean getTreeBean ( ) { } public void setTreeBean ( TreeBean treeBean ) { } }

Fix:
pTBean . setProjectId ( request . getParameter ( "saveJobPid" ) ) ;