I know this code was already here, but it is silly; can replace

    jenkins.model.Messages._Hudson_JobNameConventionNotApplyed(name, namePattern).toString()

with

    Messages.Hudson_JobNameConventionNotApplyed(name, namePattern)