{
// Create the archive in the context of the arquillian-osgi-bundle
SecurityActions.setThreadContextClassLoader(ArchiveBase.class.getClassLoader());
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, name);
ZipImporter zipImporter = archive.as(ZipImporter.class);
zipImporter.importZip(new ZipInputStream(input));
return archive;
}
finally
{
SecurityActions.setThreadContextClassLoader(ctxLoader);