Writing Custom Java Rules for Your Websites