ResourceProcessor matchingProcessor = getMatchingResourceProcessor(requestPath);
File outFile = createOutputFile(requestPathWithSkin);
log.debug("Opening output stream for " + outFile);
matchingProcessor.process(requestPathWithSkin, new ResourceInputStreamSupplier(resource).openStream(),
Files.asByteSink(outFile).openStream(), true);
processedResources.put(ResourceUtil.getResourceQualifier(resource), requestPath);
}
public void writePackedResource(String packName, String skinName, Resource resource) throws IOException {