try {
String relativePath = (sd instanceof ExternalFragment)?((ExternalFragment)sd).getFolderPath():null;
if (relativePath == null || relativePath.trim().equals(""))
sb.append(sd.getContentText(request));
else
sb.append((new CSSHandler()).handle(sd, request, settings, deps));
} catch (IOException e) {
throw new JSCompileException(e);
}
}
return sb.toString();