    private void checkAllowance() throws Exception {
		allowanceChecked = true;
		if (mode==null || (!mode.equalsIgnoreCase("add") &&
						   !mode.equalsIgnoreCase("edit") &&
						   !mode.equalsIgnoreCase("delete")) &&
						   !mode.equalsIgnoreCase("edit_positions"))
			throw new Exception("FixedValuesHandler mode unspecified!");
		if (ownerID == null && !mode.equals("delete"))
			throw new Exception("FixedValuesHandler delem_id unspecified!");
		if (ownerType.equals("CH1") || ownerType.equals("CH2"))
			ownerType = "elem";
		if (!ownerType.equals("elem") && !ownerType.equals("attr"))
			throw new Exception("FixedValuesHandler: unknown parent type!");
		if (!ownerType.equals("elem"))
			return;
		DDSearchEngine eng = new DDSearchEngine(conn);
		DataElement elm = eng.getDataElement(ownerID);
		String dtype = elm==null ? "" :
								   elm.getAttributeValueByShortName("Datatype");
		dtype = dtype==null ? "" : dtype.toUpperCase();
		if (prhbDatatypes.contains(dtype.toUpperCase()))
			allowed = false;
    }

    private void checkAllowance() throws Exception {
		allowanceChecked = true;
		if (mode==null || (!mode.equalsIgnoreCase("add") &&
						   !mode.equalsIgnoreCase("edit") &&
						   !mode.equalsIgnoreCase("delete")) &&
						   !mode.equalsIgnoreCase("edit_positions"))
			throw new Exception("FixedValuesHandler mode unspecified!");
		if (ownerID == null && !mode.equals("delete"))
			throw new Exception("FixedValuesHandler delem_id unspecified!");
		if (ownerType.equals("CH1") || ownerType.equals("CH2"))
			ownerType = "elem";
		if (!ownerType.equals("elem") && !ownerType.equals("attr"))
			throw new Exception("FixedValuesHandler: unknown parent type!");
		if (!ownerType.equals("elem"))
			return;
		DDSearchEngine eng = new DDSearchEngine(conn);
		DataElement elm = eng.getDataElement(ownerID);
		String dtype = elm==null ? "" :
								   elm.getAttributeValueByShortName("Datatype");
		dtype = dtype==null ? "" : dtype.toUpperCase();
		if (prhbDatatypes.contains(dtype.toUpperCase()) && !mode.equalsIgnoreCase("edit"))
			allowed = false;
    }
