}
tempFileStream.close();
tempFileStream = null;
FacesConfigResourceFactory factory = FacesConfigResourceFactory.createResourceFactoryForJar();
//FacesConfigResourceFactory.register(tempFile.toURI().toString());
Resource resource = factory.createResource(URI.createFileURI(tempFile.getAbsolutePath()));
try {
if (resource != null) {
resource.load(Collections.EMPTY_MAP);
EList resourceContents = resource.getContents();