Germany appeared before the International Court of Justice to ask judges to throw out a legal case brought by Nicaragua accusing Berlin of facilitating genocide through its arms exports to Israel.