if (inPlaceConfUtil.isInPlaceConfiguration(dir)) {
dir = inPlaceConfUtil.readInPlaceLocation(dir);
writeToZip(dir, out, "", buf);
}
out.closeEntry();
out.finish();
out.flush();
}
private void writeToZip(File dir, ZipOutputStream out, String prefix, byte[] buf) throws IOException {
File[] all = dir.listFiles();