validationContext.validationOngoingEvent(
ValidationMessageType.ENTRY_VALIDATION_MESSAGE,
getFormattedMessage("validating_security_groups",
org.cloudifysource.esc.util.StringUtils.arrayToString(scgArray, ", ")));
}
<BUG>try {
final List<SecurityGroup> existingList = networkApi.getSecurityGroups();</BUG>
for (int i = 0; i < scgArray.length; i++) {
boolean found = false;
if (existingList != null) {

validationContext.validationOngoingEvent(
ValidationMessageType.ENTRY_VALIDATION_MESSAGE,
getFormattedMessage("validating_security_groups",
org.cloudifysource.esc.util.StringUtils.arrayToString(scgArray, ", ")));
}
try {
final Set<String> missingList = new HashSet<String>();
final List<SecurityGroup> existingList = networkApi.getSecurityGroups();
for (int i = 0; i < scgArray.length; i++) {
boolean found = false;
if (existingList != null) {
