Josef has deduced that the Doctor can see the future and wants to know what his legacy will be. The Doctor tells him that for over a hundred years, people will vilify him, but after that, people will realise that his actions, though sometimes wrong, were the right thing to do and they will continue his work.
so extremely based