I found it in the jabref source; the serialization code is a little funky. A new sample is at https://gist.github.com/6152482