Fixed resolving of NotificationDefinition.

  - Deduplicated same code in TransformerGenerator

Change-Id: I1a422aa18d43b86a3132884e539cd65b90a64dfe
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>