{
// TODO: fix, relies on internal SW details, find web archive and attach our self to it, SHRINKWRAP-192
Asset warAsset = applicationArchiveWars.values().iterator().next().getAsset();
if (warAsset instanceof ArchiveAsset)
{
ArchiveAsset warArchiveAsset = (ArchiveAsset) warAsset;
handleArchive(
warArchiveAsset.getArchive().as(WebArchive.class),
new ArrayList<Archive<?>>(), // reuse the War handling, but Auxiliary Archives should be added to the EAR, not the WAR
protocol,
processor);
}
}