protected Object executeInternal() throws MojoExecutionException,
MojoFailureException {
CheckDNSAvailabilityRequest checkDNSAvailabilityRequest = new CheckDNSAvailabilityRequest(
cnamePrefix);
CheckDNSAvailabilityResult result = service
.checkDNSAvailability(checkDNSAvailabilityRequest);
if (failWhenExists && !result.isAvailable())
throw new MojoFailureException("CNAME exists: " + cnamePrefix);
return result;
}