Buggy code:
public class Utils { private static final Logger logger = LoggerFactory . getLogger ( Utils . class ) ; public static String getJDBCFullURL ( ) { } public static String getJDBCURL ( ) { } public static String getHost ( ) { } public static int getPort ( ) { } public static int getJPACacheSize ( ) { } public static String isCachingEnabled ( ) { } public static String getDBType ( ) { } public static boolean isDerbyStartEnabled ( ) { } public static String getJDBCUser ( ) { } public static String getValidationQuery ( ) { } public static String getJDBCPassword ( ) { } public static String getJDBCDriver ( ) { } public static ExperimentCatResource getResource ( ResourceType type , Object o ) { } private static ExperimentCatResource createGateway ( Gateway o ) { } private static ExperimentCatResource createProject ( Project o ) { } private static ExperimentCatResource createNotification ( Notification o ) { NotificationResource notificationResource = new NotificationResource ( ) ; if ( o != null ) { notificationResource . setNotificationId ( o . getNotificationId ( ) ) ; notificationResource . setGatewayId ( o . getGatewayId ( ) ) ; notificationResource . setTitle ( o . getTitle ( ) ) ; <START_BUG> notificationResource . setNotificationMessage ( o . setNotificationMessage ( ) ) ; <END_BUG> notificationResource . setPublishedTime ( o . getPublishedDate ( ) ) ; notificationResource . setExpirationTime ( o . getExpirationDate ( ) ) ; } return notificationResource ; } private static ExperimentCatResource createProjectUser ( ProjectUser o ) { } private static ExperimentCatResource createGatewayWorker ( GatewayWorker o ) { } private static ExperimentCatResource createUser ( Users o ) { } private static ExperimentCatResource createExperimentSummary ( ExperimentSummary o ) { } private static ExperimentCatResource createExperiment ( Experiment o ) { } private static ExperimentCatResource createExperimentInput ( ExperimentInput o ) { } private static ExperimentCatResource createExperimentOutput ( ExperimentOutput o ) { } private static ExperimentCatResource createTaskError ( TaskError o ) { } private static ExperimentCatResource createExperimentError ( ExperimentError o ) { } private static ExperimentCatResource createUserConfigData ( UserConfigurationData o ) { } private static ExperimentCatResource createProcess ( Process o ) { } private static ExperimentCatResource createProcessError ( ProcessError o ) { } private static ExperimentCatResource createProcessInput ( ProcessInput o ) { } private static ExperimentCatResource createProcessOutput ( ProcessOutput o ) { } private static ExperimentCatResource createTask ( Task o ) { } private static ExperimentCatResource createTaskStatusResource ( TaskStatus o ) { } private static ExperimentCatResource createProcessStatusResource ( ProcessStatus o ) { } private static ExperimentCatResource createExperimentStatusResource ( ExperimentStatus o ) { } public static ExperimentCatResource createProcessResourceSchedule ( ProcessResourceSchedule o ) { } private static ExperimentCatResource createJobResource ( Job o ) { } private static ExperimentCatResource createJobStatusResource ( JobStatus o ) { } No newline ; at end ; of file ; }

Fix:
notificationResource . setNotificationMessage ( o . getNotificationMessage ( ) ) ;