Support varies between implementations on the various JDKs. I encountered the "UnsupportedOperationException" using OpenJDK 1.7.0. Switching to the Oracle JDK 1.7 worked.
Where practical, you may be able to switch JDKs or suggest that your users switch JDKs to enable a certain feature.