public boolean checkAccess(Session session, Permission perm)
throws SecurityException
{
VUtil.assertNotNull(perm, GlobalErrIds.PERM_NULL, CLS_NM + ".checkAccess");
VUtil.assertNotNull(session, GlobalErrIds.USER_SESS_NULL, CLS_NM + ".checkAccess");
<BUG>boolean result;
FortRequest request = new FortRequest();
request.setContextId(this.contextId);</BUG>
request.setSession(session);
request.setEntity(perm);

public boolean checkAccess(Session session, Permission perm)
throws SecurityException
{
VUtil.assertNotNull(perm, GlobalErrIds.PERM_NULL, CLS_NM + ".checkAccess");
VUtil.assertNotNull(session, GlobalErrIds.USER_SESS_NULL, CLS_NM + ".checkAccess");
boolean result;
FortRequest request = RestUtils.getRequest( this.contextId );
request.setSession(session);
request.setEntity(perm);
