public static Node createAndInitRaftNode(final String groupId, final PeerId serverId, final NodeOptions opts) {
        final Node ret = createRaftNode(groupId, serverId);
        if (!ret.init(opts)) {
            throw new IllegalStateException("Fail to init node, please see the logs to find the reason.");
        }
        return ret;
    }
Create and initialize a raft node with node options.
Throw {@link IllegalStateException} when fail to initialize.
jraft-core/src/main/java/com/alipay/sofa/jraft/RaftServiceFactory.java