public static boolean hasSubmitted(HttpServletRequest request, long recordSetId) throws PortalException, SystemException { ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); List<DDLRecord> records = DDLRecordLocalServiceUtil.getRecords(recordSetId, themeDisplay.getUserId()); if (records.isEmpty()) { return false; } return true; }