emailGroup(c, mygroup, email);
emailRecipients(c, epa, email);
    private static void notifyGroupOfTask(Context c, Group mygroup,            WorkflowItem wi) throws SQLException, IOException    {        // check to see if notification is turned off        // and only do it once - delete key after notification has        // been suppressed for the first time        Integer myID = new Integer(wi.getItem().getID());        if (noEMail.containsKey(myID))        {            // suppress email, and delete key            noEMail.remove(myID);        }        else        {            try            {                // Get the item title                String title = getItemTitle(wi);                // Get the submitter's name                String submitter = getSubmitterName(wi);                // Get the collection                Collection coll = wi.getCollection();                String message = "";                switch (wi.getState())                {                case WFSTATE_STEP1POOL:                    message = "It requires reviewing.";                    break;                case WFSTATE_STEP2POOL:                    message = "The submission must be checked before inclusion in the archive.";                    break;                case WFSTATE_STEP3POOL:                    message = "The metadata needs to be checked to ensure compliance with the "                            + "collection's standards, and edited if necessary.";                    break;                }                Email email = ConfigurationManager.getEmail("submit_task");                email.addArgument(title);                email.addArgument(coll.getMetadata("name"));                email.addArgument(submitter);                email.addArgument(message);                email.addArgument(getMyDSpaceLink());                emailGroup(c, mygroup, email);            }            catch (MessagingException e)            {                log.warn(LogManager.getHeader(c, "notifyGroupofTask",                        "cannot email user" + " group_id" + mygroup.getID()                                + " workflow_item_id" + wi.getID()));            }        }    }