System.out.println("BasicAccessRuleSetEncoder: <initAvailableRules ");
	private void initAvailableRules(boolean usehardtokens, boolean usekeyrecovery, Collection availableaccessrules){		System.out.println("BasicAccessRuleSetEncoder: >initAvailableRules ");		availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_VIEW));		availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_VIEWHISTORY));		if(usehardtokens)		  availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_VIEWHARDTOKENS));		availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_CREATE));		availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_EDIT));		availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_DELETE));		availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_REVOKE));		if(usekeyrecovery)		  availableendentityrules.add(new Integer(BasicAccessRuleSet.ENDENTITY_KEYRECOVER));				Iterator iter = availableaccessrules.iterator();		while(iter.hasNext()){			String nextrule = (String) iter.next();			if(nextrule.equals(AvailableAccessRules.CABASE)){				this.availablecas.add(new Integer(BasicAccessRuleSet.CA_ALL));			}else		    if(nextrule.startsWith(AvailableAccessRules.CAPREFIX)){		    	this.availablecas.add(new Integer(nextrule.substring(AvailableAccessRules.CAPREFIX.length())));		    }else		    if(nextrule.equals(AvailableAccessRules.ENDENTITYPROFILEBASE)){		    	this.availableendentityprofiles.add(new Integer(BasicAccessRuleSet.ENDENTITYPROFILE_ALL));			    }else		    if(nextrule.startsWith(AvailableAccessRules.ENDENTITYPROFILEPREFIX)){			    			    	if(nextrule.lastIndexOf('/') <= AvailableAccessRules.ENDENTITYPROFILEPREFIX.length())		    	  this.availableendentityprofiles.add(new Integer(nextrule.substring(AvailableAccessRules.ENDENTITYPROFILEPREFIX.length())));		    	else			    	  this.availableendentityprofiles.add(new Integer(nextrule.substring(AvailableAccessRules.ENDENTITYPROFILEPREFIX.length(), nextrule.lastIndexOf('/'))));				    }		    		    		    								}				System.out.println("BasicAccessRuleSetEncoder: add ing other rules ");		this.availableotherrules.add(new Integer(BasicAccessRuleSet.OTHER_VIEWLOG));		if(usehardtokens)			this.availableotherrules.add(new Integer(BasicAccessRuleSet.OTHER_ISSUEHARDTOKENS));		System.out.println("BasicAccessRuleSetEncoder: <initAvailableRules ");	}