Java support: use UnsupportedOperationException whereas NotImplementedException