private static HFClient createHFClient()

in src/main/java/com/lambdajavablockchain/service/ManagedBlockchainService.java [279:291]


    private static HFClient createHFClient() throws AppException {
        try {
            CryptoSuite cryptoSuite = CryptoSuite.Factory.getCryptoSuite();
            HFClient client = HFClient.createNewInstance();
            client.setCryptoSuite(cryptoSuite);
            return client;
        } catch (IllegalAccessException | InstantiationException | ClassNotFoundException | CryptoException
                | InvalidArgumentException | NoSuchMethodException | InvocationTargetException e) {
            log.error("Error creating Fabric client - " + e.getMessage());
            e.printStackTrace();
            throw new AppException("Error creating Fabric Client", e);
        }
    }