// The requested key is the name of current container
ExoContainer container = ExoContainerContext.getCurrentContainerIfPresent();
if (container instanceof PortalContainer)
{
// The current container is a portal container
RootContainer rootContainer = (RootContainer)ExoContainerContext.getTopContainer();
value = rootContainer.isPortalContainerConfigAware() ? "_" + container.getContext().getName() : "";
}
}
else if (key.startsWith(Deserializer.PORTAL_CONTAINER_VARIABLE_PREFIX))
{
// We try to get a value tied to the current portal container.