private AttributeContext startContext(TilesRequestContext tilesContext) {
AttributeContext context = new BasicAttributeContext();
ArrayStack<AttributeContext> stack = getContextStack(tilesContext);
if (!stack.isEmpty()) {
AttributeContext parent = stack.peek();
context.inheritCascadedAttributes(parent);
}
stack.push(context);
return context;
}