class UserRoleFromContextService {

  public UserContextRole getUserRoleInUnit(OkrUnit okrUnit) {
    if (okrUnit instanceof OkrDepartment) {
      return getUserRoleInDepartment((OkrDepartment) okrUnit);
    } else {
      return getUserRoleWithoutContext();
    }
  }

  @Autowired public  UserRoleFromContextService(
      UnitRepository<OkrChildUnit> unitRepository,
      ObjectiveRepository objectiveRepository,
      KeyResultRepository keyResultRepository,
      NoteRepository noteRepository,
      AdminUserRepository adminUserRepository,
      UserService userService);

}