> and I also think someone could pass a null value in ConsolesApi.getConsole()

But we don't consider that a valid input value, or do we? We should be throwing an IAE or some other error if that happens, I guess?