public void createApplication(
     String appName,
     Staging staging,
     int memory,
     List<String> uris,
     List<String> serviceNames,
     boolean checkExists) {
   cc.createApplication(appName, staging, memory, uris, serviceNames, checkExists);
 }
 public void createApplication(
     String appName,
     String framework,
     int memory,
     List<String> uris,
     List<String> serviceNames,
     boolean checkExists) {
   cc.createApplication(appName, new Staging(framework), memory, uris, serviceNames, checkExists);
 }
 public String getFile(
     String appName, int instanceIndex, String filePath, int startPosition, int endPosition) {
   Assert.isTrue(
       startPosition >= 0,
       startPosition + " is not a valid value for start position, it should be 0 or greater.");
   Assert.isTrue(
       endPosition > startPosition,
       endPosition
           + " is not a valid value for end position, it should be greater than startPosition "
           + "which is "
           + startPosition
           + ".");
   return cc.getFile(appName, instanceIndex, filePath, startPosition, endPosition - 1);
 }
 public String getFile(String appName, int instanceIndex, String filePath, int startPosition) {
   Assert.isTrue(
       startPosition >= 0,
       startPosition + " is not a valid value for start position, it should be 0 or greater.");
   return cc.getFile(appName, instanceIndex, filePath, startPosition, -1);
 }
 public void deleteAllServices() {
   cc.deleteAllServices();
 }
 public URL getCloudControllerUrl() {
   return cc.getCloudControllerUrl();
 }
 public void uploadApplication(String appName, ApplicationArchive archive) throws IOException {
   cc.uploadApplication(appName, archive, null);
 }
 public InstancesInfo getApplicationInstances(String appName) {
   return cc.getApplicationInstances(appName);
 }
 public void rename(String appName, String newName) {
   cc.rename(appName, newName);
 }
 public CloudService getService(String service) {
   return cc.getService(service);
 }
 public List<ServiceConfiguration> getServiceConfigurations() {
   return cc.getServiceConfigurations();
 }
 public void deleteAllApplications() {
   cc.deleteAllApplications();
 }
 public String getFileTail(String appName, int instanceIndex, String filePath, int length) {
   Assert.isTrue(
       length > 0, length + " is not a valid value for length, it should be 1 or greater.");
   return cc.getFile(appName, instanceIndex, filePath, -1, length);
 }
 public void deleteApplication(String appName) {
   cc.deleteApplication(appName);
 }
 public void restartApplication(String appName) {
   cc.restartApplication(appName);
 }
 public void stopApplication(String appName) {
   cc.stopApplication(appName);
 }
 public void debugApplication(String appName, DebugMode mode) {
   cc.debugApplication(appName, mode);
 }
 public void uploadApplication(
     String appName, ApplicationArchive archive, UploadStatusCallback callback)
     throws IOException {
   cc.uploadApplication(appName, archive, callback);
 }
 public List<CloudService> getServices() {
   return cc.getServices();
 }
 public void updateApplicationMemory(String appName, int memory) {
   cc.updateApplicationMemory(appName, memory);
 }
 public void deleteService(String service) {
   cc.deleteService(service);
 }
 public void updateApplicationInstances(String appName, int instances) {
   cc.updateApplicationInstances(appName, instances);
 }
 public void unbindService(String appName, String serviceName) {
   cc.unbindService(appName, serviceName);
 }
 public void updateApplicationServices(String appName, List<String> services) {
   cc.updateApplicationServices(appName, services);
 }
 public CrashesInfo getCrashes(String appName) {
   return cc.getCrashes(appName);
 }
 public void updateApplicationUris(String appName, List<String> uris) {
   cc.updateApplicationUris(appName, uris);
 }
 public void updateHttpProxyConfiguration(HttpProxyConfiguration httpProxyConfiguration) {
   cc.updateHttpProxyConfiguration(httpProxyConfiguration);
 }
 public void updateApplicationEnv(String appName, List<String> env) {
   cc.updateApplicationEnv(appName, env);
 }
 public CloudInfo getCloudInfo() {
   if (info == null) {
     info = cc.getInfo();
   }
   return info;
 }
 public String getFile(String appName, int instanceIndex, String filePath) {
   return cc.getFile(appName, instanceIndex, filePath, 0, -1);
 }