Catch UnsupportedOperationException and handle it properly.
Merge pull request #54 from nebula-plugins/issue-48

Catch UnsupportedOperationException and handle it properly.