RESTWS-364: Fixed compiling against different OpenMRS versions