* @throws UnsupportedPolicyException if the validation fails.
*/
private static void validateTargetAttributewizardList(List<AttributeWizard> targetAttributeWizardList) {
if (targetAttributeWizardList == null) {
throw new UnsupportedPolicySetWizardException("targetAttributeWizardList is null");
}
if (targetAttributeWizardList.size() != 1) {
throw new UnsupportedPolicySetWizardException("Only one action attribute is supported (found "
+ targetAttributeWizardList.size() + " attributes)");
}
AttributeWizard aw = targetAttributeWizardList.get(0);
if (aw.getAttributeWizardType() != attributeWizardType) {
throw new UnsupportedPolicySetWizardException("Only one action attribute is supported");
}
}