public void fireBeforeFunctionRemoved(final InternalKnowledgePackage pkg, final String function) {
final Iterator<KieBaseEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
BeforeFunctionRemovedEvent event = new BeforeFunctionRemovedEventImpl(this.kBase, function);
do {
iter.next().beforeFunctionRemoved(event);
} while (iter.hasNext());
}