if ( artifact instanceof PolicySet ) {
PolicySet policySet = (PolicySet)artifact;
policySet.setName(new QName(namespace, policySet.getName().getLocalPart()));
policySetTable.put(policySet.getName(), policySet);
} else if ( artifact instanceof Intent ) {
Intent intent = (Intent)artifact;
intent.setName(new QName(namespace, intent.getName().getLocalPart()));
if ( intent instanceof QualifiedIntent ) {
((QualifiedIntent)intent).getQualifiableIntent().
setName(new QName(namespace,
((QualifiedIntent)intent).getQualifiableIntent().getName().getLocalPart()));
}
intentTable.put(intent.getName(), intent);
} else if ( artifact instanceof BindingTypeImpl ) {
IntentAttachPointType bindingType = (IntentAttachPointType)artifact;
bindingTypesTable.put(bindingType.getName(), bindingType);
} else if ( artifact instanceof ImplementationTypeImpl ) {
IntentAttachPointType implType = (IntentAttachPointType)artifact;