try {
task.prepareData(throttlingDataContext);
} catch (ThrottlingException e) {
String msg = "Error in preparing throttling data for tenant: " + tenantId + ".";
log.error(msg, e);
throw new ThrottlingException(msg, e);
}
// add data entries with object types separately
for (ThrottlingDataEntry dataEntry : throttlingDataContext.getData()) {
if (dataEntry.getValueType() == 4) {
Object object = dataEntry.getObjectValue();
if (object != null) {
knowledgeBase.add(object);
}
}
}
// load the access validation data
try {
ValidationInfoManager.loadValidationDetails(throttlingDataContext);
} catch (ThrottlingException e) {
String msg = "Error in loading validation details. tenant id: " + tenantId + ".";
log.error(msg, e);
throw new ThrottlingException(msg, e);
}
// add metering data context
knowledgeBase.add(throttlingDataContext);
// add access validation information