Fixed a bug in the rest-provider that was throwing ClassCastExceptions when trying to get properties from a TextContentSpec.