} catch (ArrayIndexOutOfBoundsException aiob) {
Logger.debug(this.getClass(), aiob.getMessage());
} catch (Exception e) {
com.dotmarketing.util.Logger.error(this.getClass(), e.getMessage(), e);
ResponseBuilder builder = Response.status(500);
return builder.build();
}
try {
if (user == null
|| !com.dotmarketing.business.APILocator.getLayoutAPI().doesUserHaveAccessToPortlet(
portlet.getPortletId(), user)) {
Logger.error(this.getClass(), "Invalid User " + user + " attempting to access this portlet");
ResponseBuilder builder = Response.status(403);
return builder.build();
}
} catch (Exception e2) {
com.dotmarketing.util.Logger.error(this.getClass(), e2.getMessage(), e2);
ResponseBuilder builder = Response.status(500);
return builder.build();
}
ResponseBuilder builder = Response.ok(getJspResponse(request, portlet.getPortletId(), jspName), "text/html");
CacheControl cc = new CacheControl();
cc.setNoCache(true);
return builder.cacheControl(cc).build();
}