//GenericValue content = null;
GenericValue view = null;
try {
if (subContentId == null) {
if (contentId == null) {
throw new GenericEntityException("contentId and subContentId are null.");
}
Map<String, Object> results = null;
results = ContentServicesComplex.getAssocAndContentAndDataResourceMethod(delegator, contentId, mapKey, "To", fromDate, null, null, null, assocTypes, null);
List<GenericValue> entityList = UtilGenerics.checkList(results.get("entityList"));
if (UtilValidate.isEmpty(entityList)) {