if ("jar".equals(url.getProtocol())) {
return url.getPath().replaceAll("!.*$", "");
}
}
} catch (IOException ex) {
throw new EsHadoopIllegalArgumentException("Cannot find jar for class " + binaryName, ex);
}
throw new EsHadoopIllegalArgumentException("Cannot find class " + binaryName);
}