KongaGuid guid = KongaGuid.createGuid(wsFilesInfo.getGuid());
for (WsDataFileInfo wsFile : wsFilesInfo.getDataFiles()) {
OperationId opId = new OperationId(wsFile.getOperationGuid());
TransformationId txId = new TransformationId(wsFile.getTransformationGuid());
Key key = new Key(opId, txId);
DefaultDataFilesInfo collection = map.get(key);
if (collection == null) {
collection = new DefaultDataFilesInfo(guid, serverInfo, opId, txId);
map.put(key, collection);
}
DataFileType type = DataFileType.values()[wsFile.getType()];
DataFileInfo file = new DataFileInfo(type, wsFile.getNumberOfChunks());
collection.addFileInfo(file);
}
return map;
}