static public DataType getDataType(String typeNumber) throws IncorrectFormatOfData {

        boolean dataException = true;
        DataType dataType = null;

        for (DataType type : DataType.values()) {
            if (type.getDataTypeValue().equals(typeNumber)) {
                dataException = false;
                dataType = type;
            }
        }

        if (dataException) {
            throw new IncorrectFormatOfData("unknown type");
        }

        return dataType;
    }