if ("jndi".equals(currentUrl.getProtocol())) {
String file = currentUrl.getFile();
try {
final URLConnection connection = currentUrl.openConnection();
if (connection instanceof DirContextURLConnection) {
final DirContextURLStreamHandler handler = DirContextURLStreamHandler.class.cast(Reflections.get(currentUrl, "handler"));
final ProxyDirContext dirContext = ProxyDirContext.class.cast(Reflections.get(handler, "context"));
final String host = String.class.cast(Reflections.get(dirContext, "hostName"));
final String contextPath = String.class.cast(Reflections.get(dirContext, "contextPath"));
final Object context = Reflections.get(dirContext, "dirContext");