Throwable cause = ex.getCause(); if (cause instanceof ResourceNotFoundException) { String resourceName = ((ResourceNotFoundException) cause).getResourceName(); if (resourceName != null) { ClassDescriptor classDesc = ClassDescriptor.fromResourceName(resourceName); return classDesc.toDottedClassName(); } }
	public static String getMissingClassName(ClassNotFoundException ex) {		for (Pattern pattern : patternList) {			Matcher matcher = pattern.matcher(ex.getMessage());			if (matcher.matches())				return matcher.group(1);		}		return null;	}