Extracted method to get real name from notify method.