* Create a new Document given
*
* @aResource.
*/
protected void createDocument() {
TranslatorResource res = getResource();
res.setDefaults();
IFile file = WorkbenchResourceHelper.getFile(resource);
InputStream is = DOMUtilities.createHeaderInputStream(res.getDoctype(), res.getPublicId(), res.getSystemId());
if (is == null)
return;
try {
try {
List folders = new ArrayList();