batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/BatchPermission.java
public static BatchPermission forName(final String name) {
        Assert.checkNotNullParam("name", name);
        return "*".equals(name) ? allPermission : mapping.getItemByString(name);
    }
public static BatchPermission forName(final String name) {
        Assert.checkNotNullParam("name", name);
        return "*".equals(name) ? allPermission : mapping.getItemByString(name);
    }
Get the permission with the given name.

@param name the name (must not be {@code null})

@return the permission (not {@code null})

@throws IllegalArgumentException if the name is not valid