@SuppressWarnings("unchecked") private static void realMapToSInstance(Map<Integer, Map<String, Object>> pojoReferenceDataMap, Object pojoDataMap, SInstance rootInstance, boolean strictMode) { SType<?> type = rootInstance.getType(); if (type.isComposite()) { mapToSIComposite(pojoReferenceDataMap, (Map<String, Object>) pojoDataMap, (SIComposite) rootInstance, strictMode); } else if (type.isList()) { mapToSIList(pojoReferenceDataMap, (Map<String, Object>) pojoDataMap, (SIList<SInstance>) rootInstance, strictMode, type); } else { rootInstance.setValue(((Map<String, Object>) pojoDataMap).get(type.getNameSimple())); } }