title: Sonar: Replace the synchronized class "Hashtable" by an unsynchronized one such as "HashMap"
body: <p>Im having trouble replacing hashtable for hashmap because the method im using receives a hashtable:</p>
  
  <pre><code>private Context getInitialContext() throws NamingException {
  
          final Hashtable&lt;String, Object&gt; jndiProperties = new Hashtable&lt;&gt;();
  
          jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
          // This "new InitialContext()" receives a Hastable, and I can't modify that
          // because that is part of a jar
          // "javax.naming.InitialContext.InitialContext(Hashtable&lt;?, ?&gt; environment)
          // throws NamingException"
          context = new InitialContext(jndiProperties);
  
          return context;
      }
  </code></pre>
  
  <p>InitialContext method:</p>
  
  <pre><code>public InitialContext(Hashtable&lt;?,?&gt; environment)
          throws NamingException
      {
          if (environment != null) {
              environment = (Hashtable)environment.clone();
          }
          init(environment);
      }
  </code></pre>
  
  <p>What can I do to solve this codesmell?? </p>