class Classifier {

    public ClientResourceType findResourceType( final FolderItem folderItem ) {
        if ( folderItem.getItem() instanceof Path ) {
            return findResourceType( (Path) folderItem.getItem() );
        }
        throw new IllegalArgumentException( "Invalid FolderItem type." );
    }

}