     }
   }
 
+  /**
+  * Static method for parsing VCAP_APPLICATION and VCAP_SERVICES.
+  */
   private class func parseEnvVariable(isLocal: Bool, environmentVars: [String:String],
     variableName: String, varibleType: String, options: [String:AnyObject])
     -> [String:AnyObject] {


// TODO: Determine feasibility of returning structs/classes instead of
// dictionaries for the methods and instance variables exposed in this class.
public class AppEnv {

  let isLocal: Bool
  let app: [String:AnyObject]
  let services: [String:AnyObject]
  let port: Int
  let name: String?
  let bind: String
  let urls: [String]

  /**
  * The vcap option property is ignored if not running locally.

    urls = AppEnv.parseURLs(isLocal, app: app, port: port, options: options)
  }

  /**
  * Returns an App object.
  */
  public func getApp() -> App? {

    let limits = App.Limits(memory: app["limits"]!["memory"] as! Int,
