public Optional<JobDefinition> getJobDefinition(final String jobType) {
        return jobDefinitions
                .stream()
                .filter((j) -> j.jobType().equalsIgnoreCase(jobType))
                .findAny();
    }
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.

@param jobType case insensitive {@link JobDefinition#jobType() job type}
@return optional JobDefinition