if (runtimeRequest != null)
for (LinkInfo ld : lst) {
int p = ld.index;
sb.append(chunk.substring(start, links.get(p).getBegin()));
if (ld.scriptId != null) {
Attribute a = links.get(p).getAttributes().get("href");
sb.append(chunk.substring(links.get(p).getBegin(), a
.getBegin()));
sb.append("href=\"");
sb.append(PathUtils.getContextURL(runtimeRequest
.getContextPath(), "/combined.css?id="));
sb.append(ld.scriptId);
sb.append("\" ");
sb.append(chunk.substring(a.getEnd(), links.get(p)
.getEnd()));
}
start = links.get(p).getEnd();
}
sb.append(chunk.substring(start));