super(parentMojo);
}
@Override
protected Object executeInternal(SwapCNamesContext context) throws Exception {
SwapEnvironmentCNAMEsRequest request = new SwapEnvironmentCNAMEsRequest();
request.setSourceEnvironmentName(context.getSourceEnvironmentName());
request.setSourceEnvironmentId(context.getSourceEnvironmentId());
request
.setDestinationEnvironmentName(context.getDestinationEnvironmentName());
request.setDestinationEnvironmentId(context.getDestinationEnvironmentId());
service.swapEnvironmentCNAMEs(request);
return request;
}