private String generateFunctionString(String origStr,//
			Map<LiteralVariable, LiteralVariable> literalVariableMapping) throws ParserException {
		try {
			LiteralVariable lv = DflTheoryParser2.extractLiteralVariable(origStr);
			if (null != literalVariableMapping && literalVariableMapping.containsKey(lv)) {
				lv = literalVariableMapping.get(lv);
			} else if (getAppConstants().isAppConstant(lv)) lv = getAppConstants().getAppConstantAsLiteralVariable(lv);

			return lv.toString();
		} catch (ParserException e) {
			throw e;
		} catch (Exception e) {
			throw new ParserException(e);
		}
	}