Replaced StateException with UnsupportedOperationException for unsupported state methods