class SearchDocument {

    String getName() {
        if (!SW360Constants.MAP_FULLTEXT_SEARCH_NAME.containsKey(type)) {
            return "";
        } else {
            String name = getProperty(SW360Constants.MAP_FULLTEXT_SEARCH_NAME.get(type));
            return StringUtils.abbreviate(name, NAME_MAX_LENGTH);
        }
    }

      SearchDocument(Map<String, Object> document);

}