return MessageFormat.format(pattern, new String[]{filename});
}
catch (ContentIOException cioe)
{
throw new URLRewriteException("Failed to compute path", cioe);
}
catch (UnsupportedEncodingException e)
{
throw new URLRewriteException("Failed to encode path", e);
}
}