case DELETE:
return halClient.deleteResource(method.getReturnType(),
getRelationHref(link, args, method.getParameterAnnotations()));
default:
throw new UnsupportedOperationException("Unexpected HTTP method: " + link.method());
}
} else if (method.getName().startsWith("get")) {
return convert(method.getGenericReturnType(), halResource.getProperty(getPropertyName(method.getName())));
} else if (method.getName().equals("toString") && args == null) {