private static final Logger LOG = LoggerFactory.getLogger(EnsureSecurityGroupExists.class);
@Override
public void execute(CloudStackClient cloudStackClient, Pool pool, DelegateExecution execution) {
Network network = checkNotNull(pool.getNetwork(), "Please configure a network for the pool");
String securityGroupName = SecurityGroups.formatNameFromBusinessKey(execution.getProcessBusinessKey());
SecurityGroup securityGroup;
try {
LOG.info("Creating SecurityGroup {}", securityGroupName);
securityGroup = SecurityGroups.createSecurityGroup(cloudStackClient, securityGroupName);