private boolean isElementType(String name, String[] elementList) {
		if (name == null || elementList == null) {
			return false;
		}
		
		for (int i = 0; i < elementList.length; i++) {
			String element = elementList[i];
			if (ignoreCase) {
				if (element.equalsIgnoreCase(name)) {
					return true;
				}
			} else {
				if (element.equals(name)) {
					return true;
				}			
			}
		}
		return false;
	}