Hook method getBugType() introduced into template method addBug().