currentTag can't be null, you can use OpenmrsUtil.nullSafeEqualsIgnoreCase otherwise it will fail if the cases are different