Added provider-registry pattern for rule.

Signed-off-by: Dennis Nobel <d.nobel@external.telekom.de>