OPCGroup group = server.addGroup ( "test", true, 1000, 1234, 0, 0.0f, 1033 );
OPCGroup group = server.addGroup ( "test", true, 100, 1234, 60, 0.0f, 1033 );
    public static void main ( String[] args ) throws IllegalArgumentException, UnknownHostException, JIException    {        JISession session = null;        OPCServer server = null;        try        {            JISystem.setAutoRegisteration ( true );            session = JISession.createSession ( args[1], args[2], args[3] );            // OPCServer server = new OPCServer ( "127.0.0.1", JIProgId.valueOf            // ( session, "Matrikon.OPC.Simulation.1" ),            // session );            JIComServer comServer = new JIComServer ( JIClsid.valueOf ( "F8582CF2-88FB-11D0-B850-00C0F0104305" ),                    args[0], session );            IJIComObject serverObject = comServer.createInstance ();            server = new OPCServer ( serverObject );                        // server.GetStatus ();            server.setLocaleID ( 1033 );            System.out.println ( String.format ( "LCID: %d", server.getLocaleID () ) );            server.setClientName ( "test" );            for ( Integer i : server.queryAvailableLocaleIDs () )            {                System.out.println ( String.format ( "Available LCID: %d", i ) );            }            OPCBrowseServerAddressSpace serverBrowser = new OPCBrowseServerAddressSpace (serverObject);            //browse ( serverBrowser );           OPCGroup group = server.addGroup ( "test", true, 1000, 1234, 0, 0.0f, 1033 );           group.setName ( "test2" );           OPCGroup group2 = group.clone ( "test" );           group = server.getGroupByName ( "test2" );           dumpGroupState ( group );           dumpGroupState ( group2 );                      testItems ( group, "Saw-toothed Waves.Int" , "Saw-toothed Waves.Int2" );                      OPCItemProperties itemProperties = server.getItemPropertiesService ();           dumpItemProperties ( itemProperties, "Saw-toothed Waves.Int" );                      OPCItemIO itemIO = server.getItemIOService ();           //queryItems ( itemIO, "Saw-toothed Waves.Int" );                      // clean up           server.removeGroup ( group, true );           server.removeGroup ( group2, true );           // server.getStatus ();                      //showError ( server, 0x80004005 );        }        catch ( JIException e )        {            e.printStackTrace ();            showError ( server, e.getErrorCode () );        }        finally        {            JISession.destroySession ( session );        }    }