int end = Math.min((i + 1) * MAX_ATTR_LENGTH, json.length());
attributes.add(new ReplaceableAttribute(TRIGGER_JSON
+ String.valueOf(i), json.substring(
i * MAX_ATTR_LENGTH, end), true));
}
amazonSimpleDb.batchPutAttributes(new BatchPutAttributesRequest(
triggerDomain, Collections.singletonList(item)));
} catch (Exception e) {
log.error("Could not store Trigger: " + newTrigger.getFullName(), e);
}