buffer[j] = (byte) input.read();
}
replacedResources.put(resourceName, buffer);
}
final Attachments attachments = new Attachments();
attachments.set(AttachmentKeys.DEPLOYMENT_NAME, archiveName);
Agent.redefine(classDefinitions.toArray( new ClassDefinition[classDefinitions.size()]), addedClassList.toArray(new AddedClass[addedClassList.size()]), attachments);
CurrentEnvironment.getEnvironment().updateResource(archiveName, replacedResources);
output.writeInt(0);
} catch (Exception e) {