<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=035244019-11122008>Based on current 
implementation, the following&nbsp;methods I think should throw a exception, 
something like: </SPAN></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008></SPAN></FONT><FONT face=Arial 
size=2><SPAN 
class=035244019-11122008>ResourceNotFoundException</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT 
size=2>org.drools.compiler.PackageBuilder.addKnowledgeResource<SPAN 
class=035244019-11122008>()</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial 
size=2>org.drools.builder.impl.KnowledgeBuilderImpl.add<SPAN 
class=035244019-11122008>()</SPAN><BR></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2>another option 
might be to&nbsp;verify the validity of a Resource object at creation time and 
make ResourceFactory factory methods throw <SPAN 
class=035244019-11122008>ResourceNotFoundException.</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008>I believe the case of a&nbsp;"not found&nbsp;resource" 
the user of the api should be "ecouraged" to 
handle.</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008>Another case that might be needed to be handled could 
be InvalidResource?</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008>Let me know what you guys 
think</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008>Regards</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=035244019-11122008><FONT face=Arial size=2><SPAN 
class=035244019-11122008>--zoly</SPAN></FONT></SPAN></DIV></FONT></BODY></HTML>