private String lookupVersionLabelForCommitId(String commitId) {
String versionLabel = null;
String prefixToLookup = format("git-%s-", commitId);
DescribeApplicationVersionsResult describeApplicationVersions = getService().describeApplicationVersions(new DescribeApplicationVersionsRequest().withApplicationName(applicationName));
for (ApplicationVersionDescription avd : describeApplicationVersions.getApplicationVersions()) {
if (avd.getVersionLabel().startsWith(prefixToLookup)) {
versionLabel = avd.getVersionLabel();
break;