private static Set<URI> getConfiguredPluginRepositories(Map<String, String> configMap) {
        Set<URI> rval = new HashSet<>();
        rval.addAll(PluginUtils.getDefaultMavenRepositories());
        String repositories = configMap.get("pluginRepositories"); //$NON-NLS-1$
        if (repositories != null) {
            String[] split = repositories.split(","); //$NON-NLS-1$
            for (String repository : split) {
                try {
                    String trimmedRepo = repository.trim();
                    if (!trimmedRepo.isEmpty()) {
                        if (trimmedRepo.startsWith("file:")) { //$NON-NLS-1$
                            trimmedRepo = trimmedRepo.replace('\\', '/');
                        }
                        rval.add(new URI(trimmedRepo));
                    }
                } catch (URISyntaxException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return rval;
    }
Constructor.

@param pluginsDir         the plugins directory
@param pluginRepositories the plugin repositories
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/DefaultPluginRegistry.java