test code...
calling runRules to run the generalized rules.
added getGeneralizedJavaRules() in encounter controller.