I want to map the fields of two java objects based on condition like below.
if(sourceObject.getField1() != null && targetObject.getField1() == null){