public static NamingConnection getNamingConnection(
Hashtable env)
throws NamingException {
try {
NamingConnection namingConnection;
// URL should be as: hascn://host:port
String url = getEnvProperty(env, "hascn.naming.provider.url");
if (url == null) {