* @param key The key under which the container is stored.
* @since 2.1.0
*/
public static void setCurrentContainer(PortletRequest request,
PortletContext context, String key) {
TilesContainer container = getContainer(context, key);
if (container != null) {
request.setAttribute(ServletUtil.CURRENT_CONTAINER_ATTRIBUTE_NAME, container);
} else {
throw new NoSuchContainerException("The container with the key '"
+ key + "' cannot be found");