Code example for AccessControlException

0
				tempTlv = Response_DO_Factory.createDO(response.getData());
				if( tempTlv instanceof Response_RefreshTag_DO ) {
					refreshDo = (Response_RefreshTag_DO)tempTlv;
					return refreshDo.getRefreshTagArray();
				} else { 
					throw new AccessControlException("GET REFRESH TAG returned invalid Tlv.");
				} 
			} catch (ParserException e) {
				throw new AccessControlException("GET REFRESH TAG not successfull. Tlv encoding wrong.");
			} 
        }  
        throw new AccessControlException("GET REFRESH TAG not successfull.");			
    } 
 
    private ResponseApdu send(CommandApdu cmdApdu) throws org.simalliance.openmobileapi.service.CardException {
 
        byte[] response = mChannel.transmit(cmdApdu.toBytes());
 
        ResponseApdu resApdu = new ResponseApdu(response);
        return resApdu;
    }