Fixed handling of lifecycle methods with multiple annotations. Added
validation of duplicate lifecycle methods and reference names.