checkArgument(checkNotNull(input, "input") instanceof VLANNetworkDto,
"this binder is only valid for VLANNetworkDto");
GeneratedHttpRequest gRequest = (GeneratedHttpRequest) request;
checkState(gRequest.getInvocation().getArgs() != null, "args should be initialized at this point");
VLANNetworkDto network = (VLANNetworkDto) input;
VirtualMachineDto vm = (VirtualMachineDto) Iterables.find(gRequest.getInvocation().getArgs(),
Predicates.instanceOf(VirtualMachineDto.class));
RESTLink configLink = checkNotNull(vm.searchLink("configurations"), "missing required link");
LinksDto dto = new LinksDto();
dto.addLink(new RESTLink("network_configuration", configLink.getHref() + "/" + network.getId()));
return super.bindToRequest(request, dto);
}