@Override public void execute() { SecurityGroup group = _securityGroupService.createSecurityGroup(this); if (group != null) { SecurityGroupResponse response = _responseGenerator.createSecurityGroupResponse(group); response.setResponseName(getCommandName()); setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create security group"); } } }