class NullFeature implements Feature {

    public static NullFeature of(final String featureId) {
        ConditionChecker.checkNotNull(featureId, "ID of the Feature");

        final Validator validator = NoControlCharactersNoSlashesValidator.getInstance(featureId);
        if (!validator.isValid()) {
            throw JsonKeyInvalidException.newBuilderWithDescription(featureId, validator.getReason().orElse(null))
                    .build();
        }
        return new NullFeature(featureId);
    }

    private  NullFeature(final String featureId);

}