If you are looking for something to use this good theory on take a gander at Drools <a href="http:&#x2F;&#x2F;www.drools.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.drools.org&#x2F;</a> (Apache v2 license)