     */
     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.

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

extension Resource: ContentContainer
    {
    public var content: AnyObject? { return latestData?.content }
    }

extension Error: ContentContainer
    {
    public var content: AnyObject? { return entity?.content }
    }



/**
  Mixin that provides convenience accessors for the content of an optional contained entity.
  
  Allows you to replace the following:
  
      resource.latestData?.content as? String
      (resource.latestError?.entity?.content as? [String:AnyObject])?["error.detail"]

  …with:

      resource.textContent
      resource.latestError.dictContent?["error.detail"]

  You can extend this protocol to provide your own convenience accessors. For example:
  
      import SwiftyJSON
      
      extension TypedContentAccessors {
        var jsonContent:      JSON { return JSON(dictContent) }
        var jsonArrayContent: JSON { return JSON(arrayContent) }
      }
*/
public protocol TypedContentAccessors
    {
    /// The entity to which the convenience accessors will apply.
    var entityForTypedContentAccessors: Entity? { get }
    }

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