populateMapping(resourceTO.getUmapping(), mapping, new UMappingItem());
}
if (resourceTO.getRmapping() == null || resourceTO.getRmapping().getItems().isEmpty()) {
resource.setRmapping(null);
} else {
RMapping mapping = new RMapping();
mapping.setResource(resource);
resource.setRmapping(mapping);
populateMapping(resourceTO.getRmapping(), mapping, new RMappingItem());
}
resource.setCreateTraceLevel(resourceTO.getCreateTraceLevel());