@SuppressWarnings("unchecked")
@Override
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
String zoneName = postParams.get("zoneName").toString();
ResourceRecord record = ResourceRecord.class.cast(postParams.get("resourceRecord"));
String xml = toXML(zoneName, record);
Optional<?> guid = Optional.fromNullable(postParams.get("guid"));
if (guid.isPresent()) {
xml = update(guid.get(), xml);
}