WorkflowItem.class, row.getIntColumn("workflow_item_id"));
WorkflowItem.class, row.getIntColumn("workflow_id"));
    public static WorkflowItem[] findByEPerson(Context context, EPerson ep)        throws SQLException    {        List wfItems = new ArrayList();        TableRowIterator tri = DatabaseManager.query(context,            "workflowitem",            "SELECT workflowitem.* FROM workflowitem, item WHERE " +                "workflowitem.item_id=item.item_id AND " +                "item.submitter_id=" + ep.getID() +                " ORDER BY workflowitem.workflow_id;");        while (tri.hasNext())        {            TableRow row = tri.next();                        // Check the cache            WorkflowItem wi = (WorkflowItem) context.fromCache(                WorkflowItem.class, row.getIntColumn("workflow_item_id"));                        if (wi == null)            {                wi = new WorkflowItem(context, row);            }                        wfItems.add(wi);        }                WorkflowItem[] wfArray = new WorkflowItem[wfItems.size()];        wfArray = (WorkflowItem[]) wfItems.toArray(wfArray);        return wfArray;    }