@SuppressWarnings("UnusedDeclaration")
public void onDeploy(@Observes(precedence = -1) EventContext<DeployDeployment> eventContext, TestClass testClass)
{
tempDirectory = ShrinkWrapUtil.createTempDirectory(getTempDirectory());
final DeployDeployment event = eventContext.getEvent();
final Deployment deployment = event.getDeployment();
Archive<?> testableArchive = deployment.getDescription().getTestableArchive();
Archive<?> archive = deployment.getDescription().getArchive();
final File explodedDeploymentDirectory = new File(
tempDirectory + File.separator + testClass.getJavaClass().getCanonicalName() + File.separator + event.getContainer().getName());
final Archive<?> explodableArchive = getExplodableArchive(testableArchive, archive);
final File mainArchiveDirectory = new File(explodedDeploymentDirectory, explodableArchive.getName());
final String mainArchivePath = mainArchiveDirectory.getAbsolutePath();