replace NotImplementedException by UnsupportedOperationException