LPS-45478

Hey Minhchau,

I don't really like the duplicated calls to addPortletFileEntry in BackgroundTaskLocalServiceImpl and the if statements are even more complex, but I'm unsure of another way to handle this situation. I thought about passing through a boolean to say whether or not it's importing/exporting but I'm not sure if that would be any better. Let me know your thoughts on this.

Thanks.