Fix minor issues.

We now only custom load java files with a cookie file brother.
Also, the new cookie action is working.