I'm trying to write generated data to the file, but the context of the file stays untouched. My code:
VirtualFile manifestFile = resources.createChildData(resources, "manifest.xml");
System.out.println("Writing manifest to " + manifestFile.getCanonicalPath());
xstream.toXML(new Envelope(manifest), manifestFile.getOutputStream(ApplicationManager.getApplication()));
Look like wrong requestor parameter. How can I fix it?