public static void getModuleClasspath(Configuration configuration, LinkedHashSet<URL> classpath) throws Exception {
ConfigurationResolver resolver = configuration.getConfigurationResolver();
List<String> moduleClassPath = configuration.getClassPath();
for (String pattern : moduleClassPath) {
try {
Set<URL> files = resolver.resolve(pattern);
classpath.addAll(files);
} catch (MalformedURLException e) {
throw new Exception("Could not resolve pattern: " + pattern, e);
} catch (NoSuchConfigException e) {
throw new Exception("Could not resolve pattern: " + pattern, e);