Source:
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { ServerRequest server = new ServerRequest(checkNotNull(postParams.get("name"), "name parameter not present").toString(), checkNotNull(postParams.get("imageRef"), "imageRef parameter not present").toString(), checkNotNull(postParams.get("flavorRef"), "flavorRef parameter not present").toString()); if (metadata.size() > 0) server.metadata = metadata; if (personality.size() > 0) server.personality = personality; if (keyName != null) server.key_name = keyName; if (availabilityZone != null) server.availabilityZone = availabilityZone; if (userData != null) server.user_data = base64().encode(userData); if (configDrive) server.configDrive = "true"; if (securityGroupNames.size() > 0) { server.securityGroupNames = Sets.newLinkedHashSet(); for (String groupName : securityGroupNames) { server.securityGroupNames.add(new NamedThingy(groupName)); } } if (adminPass != null) { server.adminPass = adminPass; } if (diskConfig != null) { server.diskConfig = diskConfig; } if (!networks.isEmpty()) { server.networks = Sets.newLinkedHashSet(); for (Network network : networks) { Map<String, String> networkMap = Maps.newHashMap(); if(network.getNetworkUuid() != null) { networkMap.put("uuid", network.getNetworkUuid()); } if(network.getPortUuid() != null) { networkMap.put("port", network.getPortUuid()); } if(network.getFixedIp() != null) { networkMap.put("fixed_ip", network.getFixedIp()); } server.networks.add(networkMap); } } return bindToRequest(request, ImmutableMap.of("server", server)); }

Target:
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { ServerRequest server = new ServerRequest(checkNotNull(postParams.get("name"), "name parameter not present").toString(), checkNotNull(postParams.get("imageRef"), "imageRef parameter not present").toString(), checkNotNull(postParams.get("flavorRef"), "flavorRef parameter not present").toString()); if (metadata.size() > 0) server.metadata = metadata; if (personality.size() > 0) server.personality = personality; if (keyName != null) server.key_name = keyName; if (availabilityZone != null) server.availabilityZone = availabilityZone; if (userData != null) server.user_data = base64().encode(userData); if (configDrive) server.configDrive = "true"; if (securityGroupNames.size() > 0) { server.securityGroupNames = Sets.newLinkedHashSet(); for (String groupName : securityGroupNames) { server.securityGroupNames.add(new NamedThingy(groupName)); } } if (adminPass != null) { server.adminPass = adminPass; } if (diskConfig != null) { server.diskConfig = diskConfig; } if (!networks.isEmpty() || !novaNetworks.isEmpty()) { server.networks = Sets.newLinkedHashSet(); for (Network network : novaNetworks) { ImmutableMap.Builder<String, String> networkMap = new ImmutableMap.Builder<String, String>(); if(network.getNetworkUuid() != null) { networkMap.put("uuid", network.getNetworkUuid()); } if(network.getPortUuid() != null) { networkMap.put("port", network.getPortUuid()); } if(network.getFixedIp() != null) { networkMap.put("fixed_ip", network.getFixedIp()); } server.networks.add(networkMap.build()); } for (String network : networks) { server.networks.add(ImmutableMap.of("uuid", network)); } } return bindToRequest(request, ImmutableMap.of("server", server)); }