   /// some representation along the path which does not contain a relation
   /// matching the expected relation.
   func nest(representation: Representation, env: Env) {
+    //
+    //    mutableArrayValueForKey("representations").addObject(representation)
+    //
+    // Instead, add the new representation using Swift's array append method. Do
+    // Swift array methods trigger key-value observations? Clients may want to
+    // observe the representations one-by-one as they download and appear.
     representations.append(representation)
     if hasRel {
       response = responseForRel

import HypertextApplicationLanguage

/// Fetches nested representations.
public class NestedResultsController: NSObject {

  public var connection: Connection!

  public var link: Link?

  public func fetch() -> Self {


  public var failureHandler: FailureHandler?

  /// Sets up the success handler.
  public func onSuccess(successHandler: SuccessHandler) -> Self {
    self.successHandler = successHandler
    return self
  }

  /// Sets up the failure handler.
  public func onFailure(failureHandler: FailureHandler) -> Self {
    self.failureHandler = failureHandler
    return self
