for (GlobalUniqueIndex globalUniqueIndex : this.getGlobalUniqueIndexes()) { Map<String, PropertyType> properties = new LinkedHashMap<String, PropertyType>() {{ put(GlobalUniqueIndex.GLOBAL_UNIQUE_INDEX_VALUE, globalUniqueIndex.getProperties().stream().findAny().orElseThrow(IllegalStateException::new).getPropertyType()); put(GlobalUniqueIndex.GLOBAL_UNIQUE_INDEX_RECORD_ID, PropertyType.STRING); put(GlobalUniqueIndex.GLOBAL_UNIQUE_INDEX_PROPERTY_NAME, PropertyType.STRING);
for (GlobalUniqueIndex globalUniqueIndex : this.getGlobalUniqueIndexes()) { Map<String, PropertyType> properties = new LinkedHashMap<String, PropertyType>() {{ put(GlobalUniqueIndex.GLOBAL_UNIQUE_INDEX_VALUE, globalUniqueIndex.getProperties().stream().findAny().orElseThrow(IllegalStateException::new).getPropertyType()); put(GlobalUniqueIndex.GLOBAL_UNIQUE_INDEX_RECORD_ID, PropertyType.STRING); put(GlobalUniqueIndex.GLOBAL_UNIQUE_INDEX_PROPERTY_NAME, PropertyType.STRING);