i think that is not true, the setMenuNode method has a typehint so it should be a valid menu.