// available apps
if (hasApplicationByName(name)) {
throw new OpenShiftException("Application with name \"{0}\" already exists.", name);
}
ApplicationResourceDTO applicationDTO =
new CreateApplicationRequest().execute(
name, cartridge, scale, gearProfile, initialGitUrl, timeout, environmentVariables, cartridges);
IApplication application = new ApplicationResource(applicationDTO, this);
getOrLoadApplications().add(application);