}
private void createApp() throws IOException, OpenShiftException {
IOpenShiftConnection connection = OpenShiftCloud.get().getOpenShiftConnection();
IUser user = connection.getUser();
IStandaloneCartridge cartridge = getCartridge(OpenShiftCloud.get().getOpenShiftConnection());
IDomain domain = user.getDomain(getNamespace());
List<IGearProfile> gearProfiles = domain.getAvailableGearProfiles();
IGearProfile gearProfile = gearProfiles.get(0);
for (IGearProfile profile : gearProfiles) {
if (profile.getName().equals(builderSize)) {
gearProfile = profile;
}
}
LOGGER.info("Creating builder application " + cartridge.getName() + " "
+ name + " " + user.getDomain(getNamespace()).getId() + " of size "
+ gearProfile.getName() + " ...");
ApplicationScale scale = ApplicationScale.NO_SCALE;
if(builderPlatform.equalsIgnoreCase(Platform.WINDOWS.toString())) {