private synchronized AssertionFitness populate(boolean isServer) {
if(!populated){
if(this.getAttributeValue(itQname) != null){
this.includeToken = this.getAttributeValue(itQname);
}
NestedPolicy policy = this.getNestedPolicy();
if(policy == null){
if(logger.getLevel() == Level.FINE){
logger.log(Level.FINE,"NestedPolicy is null");
}
populated = true;
return fitness;
}
AssertionSet assertionSet = policy.getAssertionSet();
for(PolicyAssertion assertion: assertionSet){
if (PolicyUtil.isUsernameTokenType(assertion, spVersion)) {
tokenType = assertion.getName().getLocalPart();
} else if (PolicyUtil.hasPassword(assertion, spVersion)) {
hasPassword = false;