	public IGenPackageFinderResult findGenPackage(String nsURI,
			String locationHint, GenPackageDependentElement container, ITextResource resource) {
		ResourceSet rs = resource.getResourceSet();
		if (rs == null) {
			return null;
		}
		URI resourceURI = resource.getURI();
		resourceURI = resourceURI.trimFileExtension();
		URI genModelURI = resourceURI.appendFileExtension("genmodel");
		try {
			return findGenPackage(getSyntax(container), nsURI, rs, genModelURI);
		} catch (Exception e) {
    		EMFTextRuntimePlugin.logError("Error searching for generator model " + nsURI, e);
		}
		return null;
	}

	public IGenPackageFinderResult findGenPackage(String nsURI,
			String locationHint, GenPackageDependentElement container, ITextResource resource) {
		if (resource == null) {
			return null;
		}
		ResourceSet rs = resource.getResourceSet();
		if (rs == null) {
			return null;
		}
		URI resourceURI = resource.getURI();
		resourceURI = resourceURI.trimFileExtension();
		URI genModelURI = resourceURI.appendFileExtension("genmodel");
		try {
			return findGenPackage(getSyntax(container), nsURI, rs, genModelURI);
		} catch (Exception e) {
    		EMFTextRuntimePlugin.logError("Error searching for generator model " + nsURI, e);
		}
		return null;
	}
