static void getSchema(){
      ARServerUser context=new ARServerUser("Demo","","","romulan");
      try {
         SchemaFactory schemaMan = SchemaFactory.getFactory();
         SchemaKey key = new SchemaKey(new NameID("#arjoo-Schema1"));
         SchemaCriteria crit = new SchemaCriteria();
         crit.setRetrieveAll(true);
         Schema schema = (Schema)schemaMan.findByKey(context, key, crit);
         System.out.println("native call returned");
         System.out.println("schema name is: " + schema.getName().toString());
         SortInfo[] sort = schema.getSortInfo();
         if (sort != null)
         System.out.println("inside java, # of sortinfo: " + sort.length);
         InternalID[] admingrp = schema.getAdminGrpList();
         if (admingrp != null)
         System.out.println("inside java, # of admingroup: " + admingrp.length);
         IndexInfo[] index = schema.getIndexInfo();
         if (index != null)
         System.out.println("inside java, # of index: " + index.length);
         EntryListFieldInfo[] entrylist = schema.getEntryListFieldInfo();
         if (entrylist != null)
         System.out.println("inside java, # of entrylistfield: " + entrylist.length);
         NameID owner = schema.getOwner();
         System.out.println("inside java, owner is: " + owner.toString());
         System.out.println("last changed by: " + schema.getLastChangedBy().toString());
         System.out.println("help text: " + schema.getHelpText());
         System.out.println("last update time: " + schema.getLastUpdateTime().getValue());
         PropInfo[] props = schema.getProperties();
         if (props != null)
         System.out.println("# of props: " + props.length);
      }

      catch(ARException e) {
         e.describe();
      }

      finally {
         context.clear();
         System.out.print("\n finally...outta arjoo\n");
      }
   }