Make function getInstance respect the override for front end