class SmsRouteTreeLeaf extends SmsRouteTree {

    @Override
    SmsRouteTree handles(String serviceName) {
        if (handlesFunction.apply(serviceName)) {
            return this;
        } else {
            return null;
        }
    }

      SmsRouteTreeLeaf(Map<MatchingResourcePath, CrestAuthorizationModule> authzModules,
            CrestAuthorizationModule defaultAuthzModule, Router router,
            Function<String, Boolean> handlesFunction, Filter filter, ResourcePath path);

}