public static DeploymentPackager getInstance() {
return SingletonHolder.INSTANCE;
}
public Archive<?> createPackage(TestSuite suite) throws IOException {
final DeploymentMethod deploymentMethod = suite.getDeploymentMethod();
final Object invocationResult = deploymentMethod != null ? deploymentMethod.getArchive() : null;
final Archive<?> archive = invocationResult != null ? (Archive<?>) invocationResult : ShrinkWrap.create(
WebArchive.class, TEST_ARCHIVE);
archive.merge(
ShrinkWrap.create(GenericArchive.class).as(ExplodedImporter.class)