Thanks for filing that. I left a comment on the bug. As for the display connection detection here -- I think you could just as easily pass it in the getDefaultXXX methods.