writer.close();
}
}
private ItemHandler createUrlItemHandler(final String cssUri) {
return new ItemHandler() {
public String replace(final String originalDeclaration, final String originalUrl) {
Validate.notNull(originalUrl);
String replacement = originalDeclaration;
if (isReplaceNeeded(originalUrl)) {
final String modifiedUrl = replaceImageUrl(cssUri.trim(), cleanImageUrl(originalUrl));