Modified RuleManager class to create Rule from UI. Changed code as per
coding Standard