void bind(String jndiUrl,Hashtable<?,?> attributes,RMIServer rmiServer,boolean rebind) throws NamingException, MalformedURLException {
  InitialContext ctx=new InitialContext(attributes);
  if (rebind)   ctx.rebind(jndiUrl,rmiServer);
 else   ctx.bind(jndiUrl,rmiServer);
  ctx.close();
}

void bind ( String jndiUrl , Hashtable < ? , ? > attributes , RMIServer rmiServer , boolean rebind ) throws NamingException , MalformedURLException { InitialContext ctx = new InitialContext ( attributes ) ; if ( rebind ) ctx . rebind ( jndiUrl , rmiServer ) ; else ctx . bind ( jndiUrl , rmiServer ) ; ctx . close ( ) ; }
bind a stub to a registry .
