MojoFailureException {
// TODO: Deal with withVersionLabels
DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
.withApplicationName(applicationName);
DescribeApplicationVersionsResult appVersions = getService()
.describeApplicationVersions(describeApplicationVersionsRequest);
DescribeEnvironmentsRequest describeEnvironmentsRequest = new DescribeEnvironmentsRequest()
.withApplicationName(applicationName).withEnvironmentIds(curEnv.getEnvironmentId())
.withEnvironmentNames(curEnv.getEnvironmentName()).withIncludeDeleted(false);
DescribeEnvironmentsResult environments = getService()
.describeEnvironments(describeEnvironmentsRequest);
List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
appVersions.getApplicationVersions());
List<EnvironmentDescription> environmentList = environments
.getEnvironments();
if (environmentList.isEmpty())