}
private void enhanceWebDescriptor(Archive<?> applicationArchive)
{
final WebDescriptorEnhancer webDescriptorEnhancer = new WebDescriptorEnhancer();
if (applicationArchive instanceof EnterpriseArchive)
{
webDescriptorEnhancer.enhance((EnterpriseArchive) applicationArchive);
}
else if (applicationArchive instanceof WebArchive)
{
webDescriptorEnhancer.enhance((WebArchive) applicationArchive);
}
}