if (!secPolicy.supports(PolicyType.INTERACTION)) {
throw BeanMessages.MESSAGES.referenceOnlyCouldBeMarkedWithInteractionPolicyButIsNotTheOne(secPolicy.toString());
}
referenceModel.addPolicyRequirement(secPolicy.getQName());
}
for (TransactionPolicy txPolicy : refRequires.transaction()) {
if (!txPolicy.supports(PolicyType.INTERACTION)) {
throw BeanMessages.MESSAGES.referenceOnlyCouldBeMarkedWithInteractionPolicyButIsNotTheOne(txPolicy.toString());
}
referenceModel.addPolicyRequirement(txPolicy.getQName());
}