protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
// https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3765
// save file w/ no intermediate model creation
CodedStreamCreator codedStreamCreator = new CodedStreamCreator();
Reader reader = new DocumentReader(this.fJSPDoc);
codedStreamCreator.set(this.fJSPFile, reader);
ByteArrayOutputStream codedByteStream = null;
InputStream codedStream = null;
try {
codedByteStream = codedStreamCreator.getCodedByteArrayOutputStream();
codedStream = new ByteArrayInputStream(codedByteStream.toByteArray());
if (this.fJSPFile.exists())
this.fJSPFile.setContents(codedStream, true, true, null);
else
this.fJSPFile.create(codedStream, false, null);