LPS-46929 Move logic to LiferayFileEntry