return ServiceUtil.returnError(e.getMessage());
}
try {
ModelService modelService = dispatcher.getDispatchContext().getModelService("setAcroFields");
Map<String, Object> ctx = modelService.makeValid(context, "IN");
ctx.put("acroFieldMap", acroFieldMap);
ctx.put("contentId", acroFormContentId);
Map<String, Object> map = dispatcher.runSync("setAcroFields", ctx);
if (ServiceUtil.isError(map)) {
return ServiceUtil.returnError(ServiceUtil.makeErrorMessage(map, null, null, null, null));