java base stack and NavigateMap