Borrow from OpenMRS

The folks at OpenMRS have faced many similar technical challenges. It may be useful to try and borrow some of their code and implement similar functionality in Mifos.