{
table = new FileInputStream("./" + TABLE);
filesystem = true;
}
if(descriptorStream == null)
throw new BadDescriptorException("Could not load descriptor file from " + DESCRIPTOR + " (not found in plugin: " + getPluginLocation() + ")");
if(table == null)
throw new BadDescriptorException("Could not load parse table from " + TABLE + " (not found in plugin: " + getPluginLocation() + ")");
descriptorStream = imposeRegisteredExtensions(descriptorStream);
Descriptor descriptor = DescriptorFactory.load(descriptorStream, table, filesystem ? org.eclipse.core.runtime.Path.fromPortableString("./") : null);
descriptor.setAttachmentProvider(SugarJParseControllerGenerated.class);