private void writeExternalScripts(IMarkupWriter writer)
{
int count = Tapestry.size(_externalScripts);
for (int i = 0; i < count; i++)
{
ClasspathResourceLocation scriptLocation =
(ClasspathResourceLocation) _externalScripts.get(i);
// This is still very awkward! Should move the code inside PrivateAsset somewhere
// else, so that an asset does not have to be created to to build the URL.
PrivateAsset asset = new PrivateAsset(scriptLocation, null);