JavaArchive protocol = new ProtocolDeploymentAppender().createAuxiliaryArchive();
Archive<?> applicationArchive = testDeployment.getApplicationArchive();
Collection<Archive<?>> auxiliaryArchives = testDeployment.getAuxiliaryArchives();
Processor processor = new Processor(testDeployment, processors);
if(EnterpriseArchive.class.isInstance(applicationArchive))
{
return handleArchive(EnterpriseArchive.class.cast(applicationArchive), auxiliaryArchives, protocol, processor);
}