private void checkAndApplyDefaultValue ( Option o , Map < String , String > data ) throws RequiredParametersException { if ( hasNoDefaultValueAndNoValuePassedOnAlternativeName ( o , data ) ) { throw new RequiredParametersException ( "No default value for undefined parameter " + o . getName ( ) ) ; } }
else throw an exception