{
public void execute(PageAssembly pageAssembly)
{
String parameterName = token.getName();
ComponentPageElement element = pageAssembly.createdElement.peek();
BlockImpl block = new BlockImpl(token.getLocation(), interner.format("Parameter %s of %s",
parameterName, element.getCompleteId()));
Binding binding = new LiteralBinding(token.getLocation(), "block parameter " + parameterName, block);
EmbeddedComponentAssembler embeddedAssembler = pageAssembly.embeddedAssembler.peek();
ParameterBinder binder = embeddedAssembler.createParameterBinder(parameterName);
if (binder == null) { throw new TapestryException(PageloadMessages.parameterNotSupported(
element.getCompleteId(), parameterName), token.getLocation(), null); }
binder.bind(pageAssembly.createdElement.peek(), binding);
pageAssembly.bodyElement.push(block);
}