@Override
    public boolean addPendingAuthorisationtoBlock() {
        logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
        block = new Block();
        try{
            ArrayList<BlockChainAuthorisedObj>  pendingAuthorisationArrayList;
            synchronized (pendingAuthorisationContainer){
                pendingAuthorisationArrayList = pendingAuthorisationContainer.getPendingAccessTokens();
                logger.info("pendingAuthorisationArrayList Size: "+ pendingAuthorisationArrayList.size());
                pendingAuthorisationContainer.reset();
                logger.info("pendingAuthorisationArrayList Size post reset: "+ pendingAuthorisationArrayList.size());
            }
            // We need to order Merkle tree 1st before acually
            // Actual Merkel Tree implementation in Java. We probably will go with a less dramatic version for POC.
        }catch (Exception ex){
            logger.error(ex.getStackTrace());
        }
        return false;
    }
@Override
    public boolean addPendingAuthorisationtoBlock() {
        logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
        block = new Block();
        try{
            ArrayList<BlockChainAuthorisedObj>  pendingAuthorisationArrayList;
            synchronized (pendingAuthorisationContainer){
                pendingAuthorisationArrayList = pendingAuthorisationContainer.getPendingAccessTokens();
                logger.info("pendingAuthorisationArrayList Size: "+ pendingAuthorisationArrayList.size());
                pendingAuthorisationContainer.reset();
                logger.info("pendingAuthorisationArrayList Size post reset: "+ pendingAuthorisationArrayList.size());
            }
           
           
        }catch (Exception ex){
            logger.error(ex.getStackTrace());
        }
        return false;
    }
@override public boolean addpendingauthorisationtoblock() { logger.info("defaultblockchainpublisher:: addpendingauthorisationtoblock method called with client id:"); block = new block(); try{ arraylist<blockchainauthorisedobj> pendingauthorisationarraylist; synchronized (pendingauthorisationcontainer){ pendingauthorisationarraylist = pendingauthorisationcontainer.getpendingaccesstokens(); logger.info("pendingauthorisationarraylist size: "+ pendingauthorisationarraylist.size()); pendingauthorisationcontainer.reset(); logger.info("pendingauthorisationarraylist size post reset: "+ pendingauthorisationarraylist.size()); } }catch (exception ex){ logger.error(ex.getstacktrace()); } return false; }