replaced UnsupportedOperationException to IllegalStateException
Merge remote-tracking branch 'origin/master'