if (referredPolicySet.isUnresolved()) {
PolicySet resolvedReferredPolicySet = definedPolicySets.get(referredPolicySet.getName());
if (resolvedReferredPolicySet != null) {
referredPolicySets.add(resolvedReferredPolicySet);
} else {
throw new DefinitionsBuilderException("Referred PolicySet - " + referredPolicySet
+ "not found for PolicySet - "
+ policySet);
}
} else {
referredPolicySets.add(referredPolicySet);