this.listener.debug( "KnowledgeAgent removing Process=" + process );
this.kbase.removeProcess( process.getId() );
} else if ( kd instanceof TypeDeclaration ) {
// @TODO Handle Type Declarations... is there a way to remove this?
} else if ( kd instanceof Function ) {
Function function = (Function) kd;
this.kbase.removeFunction( function.getNamespace(),
function.getName() );
}
} catch ( IllegalArgumentException e ) {
//it could be possible that a definition does not longer exists
//in the kbase.
this.listener.warning( e.getMessage() );