* @throws ReservedWordException the reserved word exception
*/
private void checkName(String name) throws DuplicatedNameException,
ReservedWordException {
if (multiEntityBayesianNetwork.getNamesUsed().contains(name)) {
throw new DuplicatedNameException(name);
}
if (mebnFactory.getReservedWords().contains(name)) {
throw new ReservedWordException(name);
}
}