Created helper method in the config event class to avoid code repetition