{
WorkspaceDataPacket wdPacket = (WorkspaceDataPacket)packet;
// get associated changes file
if (context == null)
{
RandomChangesFile changesFile;
try
{
File subDir =
new File(PrivilegedFileHelper.getCanonicalPath(tempDir) + File.separator
+ System.currentTimeMillis());
PrivilegedFileHelper.mkdirs(subDir);
File wdFile = PrivilegedFileHelper.createTempFile("wdFile", ".0", subDir);
changesFile = new RandomChangesFile(wdFile, wdPacket.getCRC(), 1, new ResourcesHolder());
}
catch (NoSuchAlgorithmException e)
{
throw new IOException(e.getMessage());
}