question: @ Deprecated public Boolean isHod ( final Long assignId ) { final List < HeadOfDepartments > hodList = employeeDepartmentRepository . getAllHodDepartments ( assignId ) ; return ! hodList . isEmpty ( ) ; }
target:  Refer the same API in assignment service