Source:
<code>public boolean putTimelineLog(final long accountId,final TimelineLog logdata) { <START> final HashMap<String, AttributeValueUpdate> items = new HashMap<>(); <END> final DateTime now = DateTime.now(); final String dateString = DateTimeUtil.dateToYmdString(new DateTime(logdata.targetDate).withZone(DateTimeZone.UTC)); final String createdString = DateTimeUtil.dateToYmdString(new DateTime(logdata.createdDate).withZone(DateTimeZone.UTC)); final String dateAlgString = String.format("%s_%s",dateString,logdata.algorithm); final HashMap<String, AttributeValue> keys = new HashMap<>(); keys.put(ACCOUNT_ID_ATTRIBUTE_NAME, new AttributeValue().withN(String.valueOf(accountId))); keys.put(DATEALG_ATTRIBUTE_NAME, new AttributeValue().withS(dateAlgString)); keys.put(CREATEDATE_ATTRIBUTE_NAME,new AttributeValue().withS(createdString)); keys.put(VERSION_ATTRIBUTE_NAME,new AttributeValue().withS(logdata.version)); keys.put(TIMELINE_DATA_ATTRIBUTE_NAME,new AttributeValue().withS("{}")); final UpdateItemRequest updateItemRequest = new UpdateItemRequest() .withTableName(this.tableName) .withKey(keys) .withAttributeUpdates(items) .withReturnValues(ReturnValue.ALL_NEW); try { final UpdateItemResult result = this.dynamoDBClient.updateItem(updateItemRequest); }catch (AmazonServiceException awsException){ LOGGER.error("Server exception while saving result for account {}", awsException.getMessage(), dateAlgString, accountId); return false; }catch (AmazonClientException acExp){ LOGGER.error("AmazonClientException exception while saving result for account {}", acExp.getMessage(), dateAlgString, accountId); return false; } return true; }</code><technical_language>Map<String, AttributeValueUpdate></technical_language>

Target:
public boolean putTimelineLog(final long accountId,final TimelineLog logdata) { final Map<String, AttributeValueUpdate> items = new HashMap<>(); final DateTime now = DateTime.now(); final String dateString = DateTimeUtil.dateToYmdString(new DateTime(logdata.targetDate).withZone(DateTimeZone.UTC)); final String createdString = DateTimeUtil.dateToYmdString(new DateTime(logdata.createdDate).withZone(DateTimeZone.UTC)); final String dateAlgString = String.format("%s_%s",dateString,logdata.algorithm); final HashMap<String, AttributeValue> keyValueMap = new HashMap<>(); keyValueMap.put(ACCOUNT_ID_ATTRIBUTE_NAME, new AttributeValue().withN(String.valueOf(accountId))); keyValueMap.put(DATEALG_ATTRIBUTE_NAME, new AttributeValue().withS(dateAlgString)); keyValueMap.put(CREATEDATE_ATTRIBUTE_NAME, new AttributeValue().withS(createdString)); keyValueMap.put(VERSION_ATTRIBUTE_NAME, new AttributeValue().withS(logdata.version)); keyValueMap.put(TIMELINE_DATA_ATTRIBUTE_NAME, new AttributeValue().withS("{}")); final PutItemRequest request = new PutItemRequest() .withTableName(this.tableName) .withItem(keyValueMap); try { final PutItemResult result = this.dynamoDBClient.putItem(request); }catch (AmazonServiceException awsException){ LOGGER.error("Server exception while saving result for account {}", awsException.getMessage(), dateAlgString, accountId); return false; }catch (AmazonClientException acExp){ LOGGER.error("AmazonClientException exception while saving result for account {}", acExp.getMessage(), dateAlgString, accountId); return false; } return true; }