// update status first to see if allowed
if (UtilValidate.isNotEmpty(context.get("statusId"))) {
Map<String, Object> statusInMap = UtilMisc.<String, Object>toMap("contentId", context.get("contentId"), "statusId", context.get("statusId"), "userLogin", userLogin);
try {
dispatcher.runSync("setContentStatus", statusInMap);
} catch (GenericServiceException e) {
Debug.logError(e, "Problem updating content Status", "ContentServices");
return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ContentStatusUpdateError", UtilMisc.toMap("errorString", e), locale));
}
}