Issue #3275585 by dspachos, apaderno, joachim: Implementations of getInstance() return the wrong type
mentioned in commit 953611f1
mentioned in commit ab63e972