question: public Department depertmentForEmployee ( final Employee emp ) { Department dept = null ; final Date currDate = new Date ( ) ; try { final Assignment empAssignment = eisCommonService . getLatestAssignmentForEmployeeByToDate ( emp . getId ( ) , currDate ) ; dept = empAssignment . getDepartment ( ) ; return dept ; } catch ( final NullPointerException ne ) { throw new ApplicationRuntimeException ( ne . getMessage ( ) ) ; } catch ( final Exception e ) { throw new ApplicationRuntimeException ( "Error while getting Department fort the employee" + emp . getName ( ) ) ; } }
target:  returns department of the employee from assignment for the current date