public Optional < JobDefinition > getJobDefinition ( final String jobType ) { return jobDefinitions . stream ( ) . filter ( ( j ) - > j . jobType ( ) . equalsIgnoreCase ( jobType ) ) . findAny ( ) ; }
Returns an optional JobDefinition matching the given jobType .