protected void addHeadLiterals(Rule rule, List<Literal> literals, String postfix) throws RuleException {
		try {
			if (literals == null || literals.size() == 0) return;
			if ("".equals(postfix)) {
				for (Literal literal : literals) {
					rule.addHeadLiteral(literal);
				}
			} else {
				for (Literal literal : literals) {
					Literal newLiteral = DomUtilities.getLiteral( //
							literal.getName() + postfix, literal.isNegation(), //
							literal.getMode(),//
							literal.getTemporal(), //
							literal.getPredicates(),//
							true);
					rule.addHeadLiteral(newLiteral);
				}
			}
		} catch (RuleException e) {
			throw e;
		} catch (Exception e) {
			throw new RuleException(e);
		}
	}