}
public void toVehicle(Policy policy, String policyNum, List<Vehicle> vehicles) {
for (Vehicle _v : vehicles) {
if (_v.getLinks().size() != 2) {
Vehicle vehicle = new Vehicle.Builder().withVin(_v.getVin()).build();
vehicle.addLink(LinkBuilder.build(URLS.POLICY.expand(policyNum), "Policy", Link.REL_PARENT));
vehicle.addLink(LinkBuilder.build(URLS.POLICY_VEHICLE.expand(policyNum, _v.getVin()), _v.toString()));
if (policy != null) {
policy = policy.deepCopyWithVehicles(Lists.newArrayList(vehicle));
}
}