class ProcessVariableSerializer {

    public static Map<String, VariableInfo> deserialize(String serializedVariables) {
        return Stream.of(serializedVariables.split(","))
                .filter(s -> !s.isEmpty()) // "" makes no sense
                .map(ProcessVariableSerializer::deserializeVariable)
                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
    }

}