Code currently does this
var container = PluginManager.Get<IWebContextualContainerType>()
.FirstOrDefault(a => a.ContainerTypeId == contextItem.ContainerTypeId);
if (container != null && contextItem.ContainerId.HasValue &&
contextItem.ContainerTypeId == Apis.Get<IGroups>().ContainerTypeId)
{
currentContainer = container.Get(contextItem.ContainerId.Value);
}
else
{
//Only interested in context in groups
break;
}
What should it be replaced with?