String value = token.getValue();
// No expansion makes this easier, more efficient.
if (value.indexOf(InternalConstants.EXPANSION_START) < 0)
{
RenderCommand command = new RenderAttribute(token);
context.addComposable(command);
return;
}
context.add(new PageAssemblyAction()
{
public void execute(PageAssembly pageAssembly)
{
InternalComponentResources resources = pageAssembly.activeElement.peek().getComponentResources();
RenderCommand command = elementFactory.newAttributeElement(resources, token);
pageAssembly.addRenderCommand(command);
}
});
}