ArrayIndexOutOfBoundsException
standalone solution without openmrs functional
trying to reintegrate from standalone to openmrs - again arrayindexoutofbounds