private void validateNameAndTypeArePresent ( final List < TriggerDependencyBean > dependencies ) { for ( final TriggerDependencyBean dep : dependencies ) { Preconditions . checkNotNull ( dep . getName ( ) , "dependency name is required" ) ; Preconditions . checkNotNull ( dep . getType ( ) , "dependency type is required for " + dep . getName ( ) ) ; } }
validate name and type are present