result.setID(l2gateway.getUuid().getValue());
}
if (l2gateway.getL2gatewayName() != null){
result.setL2gatewayName(String.valueOf(l2gateway.getL2gatewayName()));
}
<BUG>if (l2gateway.getTenantId().getValue() != null){
result.setTenantID(String.valueOf(l2gateway.getTenantId().getValue()));
}</BUG>
if (l2gateway.getDevices() != null){
for (Devices device:l2gateway.getDevices()){

result.setID(l2gateway.getUuid().getValue());
}
if (l2gateway.getUuid() != null){
result.setID(l2gateway.getUuid().getValue());
}
if (l2gateway.getL2gatewayName() != null){
result.setL2gatewayName(String.valueOf(l2gateway.getL2gatewayName()));
}
if (l2gateway.getTenantId() != null){
result.setTenantID(l2gateway.getTenantId());
}
if (l2gateway.getDevices() != null){
for (Devices device:l2gateway.getDevices()){
