java web application implementing a REST OpenEHR record server