getType() returns parsed types.

getContent() is supposed to return raw content, so it's inappropriate to use it there. getRawType() would be OK though.