code: public static synchronized void setContext(Properties properties) throws NamingException
      {
          log.info("Instantiate naming context, properties: " + properties);
          if(properties != null)
          {
              ctx = new InitialContext(properties);
          }
          else
          {
              ctx = new InitialContext();
          }
          prop = properties;
      }
docs: Set the used {@link InitialContext}. If properties argument is <em>null</em>, the default
  initial context was used.
  
  @param properties The properties used for context instantiation - the properties are:
  {@link Context#INITIAL_CONTEXT_FACTORY}, {@link Context#PROVIDER_URL}, {@link Context#URL_PKG_PREFIXES}
  @throws NamingException