EOEditingContext ec = ERXExtensions.newEditingContext();
EOEditingContext ec = ERXEC.newEditingContext();
    public void testSendingMail() {        log.info("Sending test mail");        try {            EOEditingContext ec = ERXExtensions.newEditingContext();                        ERCMailMessage message = ERCMailDelivery.sharedInstance().composeEmail(ERJavaMail.sharedInstance().adminEmail(),                                                          new NSArray(ERJavaMail.sharedInstance().adminEmail()),                                                          new NSArray(ERJavaMail.sharedInstance().adminEmail()),                                                          null,                                                          "This is a test",                                                          "This is the body",                                                          ec);            ec.saveChanges();        } catch (Exception e) {            log.error("Caught exception: " + e.getMessage() + " stack: " + ERXUtilities.stackTrace(e));        }        log.info("Done.");    }    