// Copy nested zipfile to the temporary file
// FIXME: potentially long blocking operation - should be
// interruptible
ICodeBaseEntry resource = parentCodeBase.lookupResource(resourceName);
if (resource == null) {
throw new ResourceNotFoundException(resourceName);
}
inputStream = resource.openResource();
outputStream = new BufferedOutputStream(new FileOutputStream(tempFile));
IO.copy(inputStream, outputStream);
outputStream.flush();