Charparser code using Derby