You can avoid it by throwing a but more specific RuntimeEXception as e.g. UnsupportedOperationException or more suitable