{
ApplicationClientMetaData specMetaData = unit.getAttachment(ApplicationClientMetaData.class);
JBossClientMetaData metaData = unit.getAttachment(JBossClientMetaData.class);
// Check for an annotated view
String key = AnnotationMetaDataDeployer.CLIENT_ANNOTATED_ATTACHMENT_NAME;
ApplicationClient5MetaData annotatedMetaData = unit.getAttachment(key, ApplicationClient5MetaData.class);
if(specMetaData == null && metaData == null && annotatedMetaData == null)
return;
if(annotatedMetaData != null)
{
if(specMetaData != null)
{
ApplicationClient5MetaData specMerged = new ApplicationClient5MetaData();
AnnotationMergedView.merge(specMerged, specMetaData, annotatedMetaData);
specMetaData = specMerged;
}
else
specMetaData = annotatedMetaData;