EOEditingContext ec = session.defaultEditingContext();
        public Object invoke(Object ctx) {            Session session = (Session)ctx;            WOComponent result = null;            if ((numberFromRequest == null) || (numberFromRequest.equals(""))) {                result = errorPage("Invalid Request", session);            } else {                try {                    Integer bugId = new Integer(numberFromRequest);                    EOEditingContext ec = session.defaultEditingContext();                    NSArray bugs = EOUtilities.objectsMatchingKeyAndValue(ec, "Bug", "bugid", bugId);                    EOEnterpriseObject bug = bugs.count() > 0 ? (EOEnterpriseObject)bugs.objectAtIndex(0) : null;                    if (bug == null) {                        result = errorPage("Bug not found", session);                    } else {                        EditBug eb = (EditBug)Application.application().pageWithName("EditBug",session.context());                        eb.setObject(bug);                        eb.setNextPage(Application.application().pageWithName("HomePage",session.context()));                        result = eb;                    }                } catch (NumberFormatException nfe) {                    result = errorPage("Invalid Request", session);                } catch (Exception e) {                    result = errorPage("Bug Not Found", session);                }            }            if (result == null) {                result = errorPage("An Error Occured", session);            }            return result;        }