@Deprecated public Boolean isHod(final Long assignId){
  final List<HeadOfDepartments> hodList=employeeDepartmentRepository.getAllHodDepartments(assignId);
  return !hodList.isEmpty();
}

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