SecurityManager security = AppContext.getManager(SecurityManager.class);
CellResourceManager crm = AppContext.getManager(CellResourceManager.class);
// create a request
Action viewAction = new ViewAction();
Resource resource = crm.getCellResource(this.cellID);
if (resource != null) {
// there is security on this cell perform the enter notification
// securely
ActionMap am = new ActionMap(resource, new Action[] { viewAction });
ResourceMap request = new ResourceMap();
request.put(resource.getId(), am);
// perform the security check
security.doSecure(request, new CellEnteredTask(this, resource.getId(),
callId));
} else {
// no security, just make the call directly
cellEntered(callId);
}