@Override
protected Object doExecute() throws Exception {
IOpenShiftConnection connection = getOrCreateConnection();
IUser user = connection.getUser();
IDomain domain = domainId != null ? user.getDomain(domainId) : user.getDefaultDomain();
if (domainId != null && domain == null) {
domain = user.createDomain(domainId);
}
IApplication application = domain.createApplication(applicationName, new StandaloneCartridge(cartridge), null, new GearProfile(gearProfile));
System.out.println(application.getCreationLog());
return null;
}