}
}
public void toDrivingHistory(Driver driver, String policyNum, String licenseNo, List<DrivingHistory> historyList) {
for (DrivingHistory _h : historyList) {
DrivingHistory history = new DrivingHistory.Builder().build();
history.addLink(LinkBuilder.build(URLS.DRIVER.expand(licenseNo), driver.toString(), Link.REL_PARENT));
history.addLink(LinkBuilder.build(URLS.DRIVING_HISTORY.expand(policyNum, licenseNo), _h.toString()));
if (driver != null) {
driver = driver.deepCopyWithDrivingHistory(Lists.newArrayList(history));
}