Map<String, Object> traversMap = FastMap.newInstance();
traversMap.put("contentId", contentId);
traversMap.put("direction", direction);
traversMap.put("contentAssocTypeId", contentAssocTypeId);
try {
Map<String, Object> thisResults = dispatcher.runSync("traverseContent", traversMap);
String errorMsg = ServiceUtil.getErrorMessage(thisResults);
if (UtilValidate.isNotEmpty(errorMsg)) {
Debug.logError("Problem in traverseContent. " + errorMsg, module);
return ServiceUtil.returnError(errorMsg);
}