private void initItem ( IManagedContext < ? > item , ISurveyCallback callback ) { try { localChangeBegin ( item ) ; if ( hasSubject ( item . getContextName ( ) ) ) { item . setContextItems ( contextItems ) ; } else { item . init ( ) ; } localChangeEnd ( item , callback ) ; } catch ( ContextException e ) { log . error ( "Error initializing context." , e ) ; execCallback ( callback , new SurveyResponse ( e . toString ( ) ) ) ; } }
Initializes the managed context .