For the future: instead of static method we should add a constructor to RemoteFile that accepts a WebdavEntry as second parameter.