code: public CharSequence newRenderedStatement(final Component component)
  	{
  		JsStatement statement;
  		if (component != null)
  		{
  			component.setOutputMarkupId(true);
  			statement = new JsStatement().$(component);
  		}
  		else
  		{
  			statement = new JsStatement();
  		}
  
  		for (final ChainableStatement defaultChainableStatement : chainableStatement)
  		{
  			statement.chain(defaultChainableStatement);
  		}
  		this.renderedStatement = statement.render();
  		this.rendered = true;
  		return this.renderedStatement;
  	}
docs: Factory method to create the rendered statement.
  
  @param component
  the component
  @return the char sequence