class ShowAssetUsagesDisplayer implements ShowAssetUsagesDisplayerView.Presenter {

    @Override
    public String getAssetType(Path path) {
        String extension = "";
        String fileName = path.getFileName();
        if (fileName.contains(".")) {
            extension = fileName.substring(fileName.lastIndexOf(".") + 1);
        }
        ResourceTypeDefinition typeDefinition = existingResourceTypes.get(extension);
        if (typeDefinition != null) {
            return typeDefinition.getShortName();
        }
        return UNKNOWN_ASSET_TYPE;
    }

    @Inject public  ShowAssetUsagesDisplayer(ShowAssetUsagesDisplayerView view,
                                    TranslationService translationService,
                                    Caller<AssetsUsageService> assetsUsageServiceCaller);

}