IOUtils.closeQuietly(stream);
}
// add new entry-point definition
try {
IPackageFragment newTypePackage = newType.getPackageFragment();
ModuleDescription module = Utils.getSingleModule(newTypePackage);
DefaultModuleProvider.modify(module, new ModuleModification() {
public void modify(ModuleElement moduleElement) throws Exception {
EntryPointElement entryPointElement = new EntryPointElement();
moduleElement.addChild(entryPointElement);
entryPointElement.setClassName(newType.getFullyQualifiedName());