class NativeLocalTrashFeature implements Trash {

    @Override
    public void trash(final Local file) throws LocalAccessDeniedException {
        try {
            FileUtils.getInstance().moveToTrash(new File[]{new File(file.getAbsolute())});
        }
        catch(IOException e) {
            log.warn(String.format("Failed to move %s to Trash", file.getName()));
            new DefaultLocalTrashFeature().trash(file);
        }
    }

}