123if(Objects.nonNull(prLine)&&Objects.nonNull(prLine.getPurchaseAgentId())){ poHeaderDetailDTO.setAgentId(prLine.getPurchaseAgentId());}