call getContentFile() in Java mode if file not found