code: private void fillCompositeWithGivenValues(CompositeType pType, Map<String, Object> pCompositeValues, Map<String, Object> pSourceJson) {
          for (Map.Entry<String,Object> entry : pSourceJson.entrySet()) {
              String key = entry.getKey();
              Object value = entry.getValue();
  
              if (!pType.containsKey(key)) {
                  throw new IllegalArgumentException(
                          "Conversion to CompositeType failed because " + key + " is not known as composite attribute key.");
              }
              if (value != null) {
                  Object convertedValue = getDispatcher().convertToObject(pType.getType(key),value);
                  pCompositeValues.put(key, convertedValue);
              }
          }
      }
docs: ========================================================================================