         
         return dataTask
     }
+
+    ///Utility method to print response and error objects for debugging purposes
+    private func printResult(response:NSHTTPURLResponse?, error:NSError?) {
+        if let response = response {
+            print("httpDataTask response: \(response)")
+        }
+
+        if let error = error {
+            print("httpDataTask error: \(error.localizedDescription)")
+        }
+    }
 }
    }

    /**
     Perform POST request with a JSON payload and expect JSON result in response.
     
     - note: It is guaranteed that exactly one of the success or failure closures will be invoked after this method is called regardless of whether a valid NSURLSessionDataTask is returned.


    }
    
    /**
     Perform POST request with a URL parameter payload in the body and expect JSON result in response.
     
     - note: It is guaranteed that exactly one of the success or failure closures will be invoked after this method is called regardless of whether a valid NSURLSessionDataTask is returned.
     
