LPS-46160 Use resourcecontains instead of loadfile