Remove reflection and use getConsole method.