Configuration config = configurationManager.getConfiguration();
        Container container = config.getContainer();
        ValueStack stack = container.getInstance(ValueStackFactory.class).createValueStack();
        stack.getContext().put(ActionContext.CONTAINER, container);
        ActionContext.setContext(new ActionContext(stack.getContext()));
        ActionContext.getContext().setSession(new HashMap<String, Object>());
        // change the port on the mailSender so it doesn't conflict with an 
        // existing SMTP server on localhost