     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,


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

      }
    }

    let scheme: String = options["protocol"] as? String ?? (isLocal ? "http" : "https")
    var urls: [String] = []
    for uri in uris {
       urls.append("\(scheme)//\(uri)");
    }
    return urls
  }
