class ColumnHeaderParser {

    public String readClassColumn(String name) {
        if (StringUtils.isBlank(name)) {
            throw new MetadataReadingException("Missing column name.");
        }
        String[] chunks = name.split(NAME_DELIMITER);
        if (chunks.length != CLASS_COLUMN_PARTS || !REFERENCE_SUFFIX.equals(chunks[1])) {
            throw new MetadataReadingException("First column must match format: 'Type:ID'.");
        }
        if (StringUtils.isBlank(chunks[0])) {
            throw new MetadataReadingException("Entity type shouldn't be empty");
        }
        return chunks[0];
    }

}