package com.sedc.collectors.yahoo.industry;

import com.sedc.collectors.yahoo.model.JaxbIndustry;
import com.sedc.core.model.Industry;
import org.springframework.batch.item.ItemProcessor;

import java.util.Objects;

public class YahooIndustryProcessor  implements ItemProcessor<JaxbIndustry, Industry> {

    @Override
    public Industry process(JaxbIndustry item) throws Exception {

        if (Objects.isNull(item)) return null;

        Industry o = new Industry();
        o.setId(item.getId());
        o.setName(item.getName());
        o.setSector(item.getSector());

        return o;
    }
}

@@ -124,24 +124,56 @@
 l.Industry;%0A
+import org.apache.log4j.Logger;%0A
 import org.s
@@ -213,16 +213,16 @@
 cessor;%0A
-
 %0Aimport 
@@ -326,24 +326,111 @@
 ndustry%3E %7B%0A%0A
+    private static final Logger LOG = Logger.getLogger(YahooIndustryProcessor.class);%0A%0A
     @Overrid
@@ -645,24 +645,24 @@
 getName());%0A
-
         o.se
@@ -685,24 +685,68 @@
 Sector());%0A%0A
+        LOG.info(%22Mapped industry: %22 + o);%0A%0A
         retu

add logging to YahooIndustryProcessor