XMLHelper added possible fix for NullPointerException
formulaTuple/qVarTuple renamed