public void fireBeforeRuleAdded(final InternalKnowledgePackage newPkg, final RuleImpl rule) {
final Iterator<KieBaseEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
BeforeRuleAddedEvent event = new BeforeRuleAddedEventImpl(this.kBase, rule);
do {
iter.next().beforeRuleAdded(event);
} while (iter.hasNext());
}