     */
     public func typedContent<T>(defaultValue: T) -> T
         {
-        return (_entity?.content as? T) ?? defaultValue
+        return (entityForTypedContentAccessors?.content as? T) ?? defaultValue
         }
     
     /// Returns content if it is a dictionary with string keys; otherwise returns an empty dictionary.



/**
  Provides convenience accessors
*/
public protocol ContentContainer
    {
    var content: AnyObject? { get }
    }

public extension ContentContainer
    {
    /**
      A convenience for retrieving the content in this container when you expect it to be of a specific type.

    public var textContent:  String             { return typedContent("") }
    }

extension Entity: TypedContentAccessors
    {
    /// Typed content accessors apply to this entity’s content.
    public var entityForTypedContentAccessors: Entity? { return self }
    }

extension Resource: TypedContentAccessors
    {
    /// Typed content accessors apply to `latestData?.content`.
    public var entityForTypedContentAccessors: Entity? { return latestData }
    }

extension Error: TypedContentAccessors
    {
    /// Typed content accessors apply to `entity?.content`.
    public var entityForTypedContentAccessors: Entity? { return entity }
    }
