Code example for AccessControlException

0
	    if( getTerminal().getAccessController() != null ) { // re-use existing controller object for caching 
	    	// check command if it complies to the access rules. 
	    	// if not an exception is thrown 
	    	getTerminal().getAccessController().checkCommand(this, command);
	    } else { 
	    	throw new AccessControlException( "FATAL: Access Controller not set for Terminal: " + getTerminal().getName());
	    } 
    } 
 
 
    /** 
     * @return 
     */ 
    public boolean hasSelectedAid() { 
        return mHasSelectedAid;
    } 
 
    /** 
     * @return 
     */ 
    public void hasSelectedAid(boolean has) {