Java - group movie subdirectories based on genre