code: public Any execute(DeviceImpl device,Any in_any) throws DevFailed
  	{
  		Util.out4.println("QueryDeviceCmd.execute(): arrived");
  
  //	
  // call DServer method which implements this command
  //
  
  		String[] ret = ((DServer)(device)).query_device();
  
  //
  // return data to the caller
  //
  
  		Any out_any = null;
  		//noinspection ErrorNotRethrown
  		try
  		{
  			out_any = Util.instance().get_orb().create_any();
  		}
  		catch (OutOfMemoryError ex)
  		{
  			Util.out3.println("Bad allocation while in QueryDeviceCmd::execute()");
  			Except.throw_exception("API_MemoryAllocation",
  						   "Can't allocate memory in server",
  						   "QueryDeviceCmd.execute");
  		}
  		DevVarStringArrayHelper.insert(out_any,ret);
  	
  		Util.out4.println("Leaving QueryDeviceCmd.execute()");	
  		return	out_any;
  	}
docs: --------------------------------------------------------------------------