class GroupMemberExpiryNotificationTask implements NotificationTask {

    @Override
    public List<Notification> getNotifications() {
        Map<String, DomainGroupMember> expiryMembers = dbService.getGroupExpiryMembers(1);
        if (expiryMembers == null || expiryMembers.isEmpty()) {
            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug("No expiry group members available to send notifications");
            }
            return new ArrayList<>();
        }

        return getNotificationDetails(expiryMembers, groupExpiryPrincipalNotificationToEmailConverter,
                groupExpiryDomainNotificationToEmailConverter);
    }

    public  GroupMemberExpiryNotificationTask(DBService dbService, String userDomainPrefix);

}