A framework for management of electronic institutions using Drools