public static void main(String args[]) {
    try {
      ModuleSearchServerImpl moduleSearchServerImpl = new ModuleSearchServerImpl();

      Properties props = new Properties();
      props.put(ModuleSearchServerApp.FACTORY, ModuleSearchServerApp.FACTORY_NAME);
      props.put(ModuleSearchServerApp.PROVIDER, ModuleSearchServerApp.PROVIDER_URL);
      InitialContext ic = new InitialContext(props);

      // Bind the object to the IIOP registry
      ic.rebind("ModuleSearchServer", moduleSearchServerImpl);
      System.out.println("ModuleSearchServer Started \n");
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
  }