I'm trying to override the list() function of the CRUD module for one of my models.

I found [this](http://groups.google.com/group/play-framework/browse_thread/thread/32fdeaeb801549e#) on google groups which is essentially the issue i'm having.

Basically I want to filter the list based on certian categories, I tried this:

CONTROLLER

```
public static void list(string category){
    List<Duty> object = Duty.getByCategory(category);
    render(object);
}

```

MODEL

```
public static List<Duty> getByCategory(String category){
    List<Duty> result = Duty.find("select distinct d from Duty d join " +
        "d.category c where c.name = ? order by d.name", category).fetch();
    return result;
}

```

I get the following error:

![Template execution error](https://i.stack.imgur.com/otFb9.png)

How do you overwrite the list action?

Any help will be much appreciated.