Create ThreadRepository.java