private void verifyDependencyExists ( Map < String , ConfigDefinition > definitionsMap , ConfigDefinition def , String dependsOnKey , Object contextMsg ) { Preconditions . checkState ( definitionsMap . containsKey ( dependsOnKey ) , Utils . format ( "Error while processing {} ConfigDef='{}'. Dependency='{}' does not exist." , contextMsg , def . getName ( ) , dependsOnKey ) ) ; }
Verify that the config definition s dependency actually maps to a valid config definition