private Job createJob(String jobType) throws JobException
    {
        Job job;
        try {
            job = this.componentManager.get().getInstance(Job.class, jobType);
        } catch (ComponentLookupException e) {
            throw new JobException("Failed to lookup any Job for role hint [" + jobType + "]", e);
        }

        return job;
    }
private Job createJob ( String jobType ) throws JobException { Job job ; try { job = this . componentManager . get ( ) . getInstance ( Job . class , jobType ) ; } catch ( ComponentLookupException e ) { throw new JobException ( "Failed to lookup any Job for role hint [" + jobType + "]" , e ) ; } return job ; }
@param jobType the job id
@return a new job
@throws JobException failed to create a job for the provided type