private static String parseProjectionFromHeader()

in src/main/java/deltix/ember/sample/CustomRiskUpdateSampleCSV.java [120:134]


    private static String parseProjectionFromHeader (String[] header) {
        StringBuilder result = new StringBuilder();
        for (String column : header) {
            column = column.trim();
            try {
                ProjectionKey projectionKey = ProjectionKey.valueOf(column);
                if (result.length() > 0)
                    result.append(ProjectionPath.FIELD_PATH_SEPARATOR);
                result.append(projectionKey.name());
            } catch (IllegalArgumentException e) {
                break;
            }
        }
        return result.toString();
    }