public static int getEventsCount(long groupId, String type) { try { return CalEventLocalServiceUtil.getEventsCount(groupId, type); } catch (SystemException e) { // TODO Auto-generated catch block _log.error(e); return -1; } }