public String buildClasspathBasedOnCurrentClassLoader(Logger logger) {
		URL[] urls = getClassPaths(AbstractGrinderClassPathProcessor.class.getClassLoader());

		StringBuilder builder = new StringBuilder();
		for (URL each : urls) {
			builder.append(decodePathWithUTF8(each.getFile())).append(File.pathSeparator);
		}
		if (builder.length() < 300) {
			// In case of the URLClassLoader is not activated, Try with system class path
			final String property = System.getProperty("java.class.path", "");
			for (String each : property.split(File.pathSeparator)) {
				builder.append(each).append(File.pathSeparator);
			}
		}
		return filterClassPath(builder.toString(), logger);
	}
Construct classPath from current classLoader.

@param logger logger
@return classpath optimized for grinder.
ngrinder-core/src/main/java/net/grinder/util/AbstractGrinderClassPathProcessor.java