protected CreateEnvironmentResult createEnvironment(String cnameToCreate)
throws MojoFailureException, MojoExecutionException {
String newEnvironmentName = getEnvironmentName(environmentName);
CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
.createEnvironmentContext() //
.withApplicationName(applicationName)//
.withApplicationDescription(applicationDescription)//
.withCnamePrefix(cnameToCreate)//
.withSolutionStack(solutionStack)//
.withTemplateName(templateName)//
.withEnvironmentName(newEnvironmentName)//
.withOptionSettings(optionSettings)//
.withVersionLabel(versionLabel);//
CreateEnvironmentContext context = builder.build();
CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);
return command.execute(context);
}