[COOK-2499] Fix resource cloning warning