throw new UnloggedFailure(1, String.format("Plugin \"%s\" is not in the registry!", urlOrId));
}
// enforce minimum system requirement
if (!StringUtils.isEmpty(pr.requires)) {
Version requires = Version.createVersion(pr.requires);
Version system = gitblit.getSystemVersion();
boolean isValid = system.isZero() || system.atLeast(requires);
if (!isValid) {
String msg = String.format("Plugin \"%s:%s\" requires Gitblit %s",
urlOrId, pr.version, pr.requires);
throw new UnloggedFailure(1, msg);
}