private static final String TEMPLATE = "<v01:getDirectionalDNSRecordsForGroup><groupName>{groupName}</groupName><hostName>{recordName}</hostName><zoneName>{zoneName}</zoneName><poolRecordType>{recordType}</poolRecordType></v01:getDirectionalDNSRecordsForGroup>";
@SuppressWarnings("unchecked")
@Override
public <R extends HttpRequest> R bindToRequest(R request, Object in) {
DirectionalGroupCoordinates group = DirectionalGroupCoordinates.class.cast(in);
ImmutableMap<String, Object> variables = ImmutableMap.<String, Object> builder()
.put("zoneName", group.getZoneName())
.put("recordName", group.getRecordName())
.put("recordType", group.getRecordType())
.put("groupName", group.getGroupName()).build();
return (R) request.toBuilder().payload(UriTemplates.expand(TEMPLATE, variables)).build();
}