} else if (clazz.isAnnotationPresent(LoadTool.class)
&& (!applyFilter || enabledTools.contains(clazz.getName()))) {
LoadTool loadTool = clazz.getAnnotation(LoadTool.class);
if (clazz.isAnnotationPresent(RequireRoles.class)) {
RequireRoles requireRoles = clazz.getAnnotation(RequireRoles.class);
StringBuilder rolesBuilder = new StringBuilder("new String[] {");
String[] roles = requireRoles.value();
for (int i = 0; i < roles.length; i++) {
rolesBuilder.append("\"").append(roles[i].trim()).append("\"");
if ((i + 1) < roles.length) rolesBuilder.append(", ");
}