default FeatureToggle<T> toFeatureToggle(){
  final Optional<T> opt=toOptional();
  return opt.isPresent() ? FeatureToggle.enable(opt.get()) : FeatureToggle.disable(null);
}

default FeatureToggle < T > toFeatureToggle ( ) { final Optional < T > opt = toOptional ( ) ; return opt . isPresent ( ) ? FeatureToggle . enable ( opt . get ( ) ) : FeatureToggle . disable ( null ) ; }
returns a enabled featuretoggle in case there is an optional in this object , otherwise returns a disabled featuretoogle
