public String format(final StreamAttributeMap map, final StreamAttributeKey key) {
        String valueString = map.getAttributeValue(key);

        if (valueString == null) {
            return null;
        }

        try {
            if (StreamAttributeFieldUse.COUNT_IN_DURATION_FIELD.equals(getFieldType())) {
                final long valueLong = Long.valueOf(valueString);
                valueString = ModelStringUtil.formatCsv(valueLong);

            } else if (StreamAttributeFieldUse.SIZE_FIELD.equals(getFieldType())) {
                valueString = ModelStringUtil.formatIECByteSizeString(Long.valueOf(valueString));

            } else if (StreamAttributeFieldUse.NUMERIC_FIELD.equals(getFieldType())) {
                valueString = ModelStringUtil.formatCsv(Long.valueOf(valueString));

            } else if (StreamAttributeFieldUse.DURATION_FIELD.equals(getFieldType())) {
                final long valueLong = Long.valueOf(valueString);

                valueString = ModelStringUtil.formatDurationString(valueLong) + " ("
                        + ModelStringUtil.formatCsv(valueLong) + " ms)";
            }
        } catch (final Exception ex) {
        }

        return valueString;
    }
List of all known stream types within the system.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamAttributeKey.java