This logic is copied and pasted from the resolveContent method.  If there are slight differences here, we need to figure out how to make the original method more generic.