code: public void checkAccess(String pHost, String pAddress, String pOrigin) {
          if (!backendManager.isRemoteAccessAllowed(pHost, pAddress)) {
              throw new SecurityException("No access from client " + pAddress + " allowed");
          }
          if (!backendManager.isOriginAllowed(pOrigin,true)) {
              throw new SecurityException("Origin " + pOrigin + " is not allowed to call this agent");
          }
      }
docs: Check whether the given host and/or address is allowed to access this agent.
  
  @param pHost host to check
  @param pAddress address to check
  @param pOrigin (optional) origin header to check also.