/** * Returns the AssertionSet instance representing a single policy alterantive held wihtin this nested policy object. * If the nested policy represents a policy with no alternatives (i.e. nothing is allowed) the method returns {@code null}. * * @return nested policy alternative represented by AssertionSet object. May return {@code null} in case the nested policy * represents 'nothing allowed' policy. */ public AssertionSet getAssertionSet() { final Iterator<AssertionSet> iterator = iterator(); if (iterator.hasNext()) { return iterator.next(); } else { return null; } }