code: public Any execute(DeviceImpl device,Any in_any) throws DevFailed
  	{
  
  		Util.out4.println("DevRestart.execute(): arrived ");
  
  //
  // Extract the input device name.
  //
  
  		String in_dev = null;
  		try
  		{
  			//in_dev = in_any.extract_string();
  			in_dev = DevStringHelper.extract(in_any);
  		}
  		catch(BAD_OPERATION ex)
  		{
  			Util.out3.println("DevRestartCmd.execute() --> Wrong argument type");
  			Except.throw_exception("API_IncompatibleCmdArgumentType",
  					       "Imcompatible command argument type, expected type is : string",
  					       "DevRestartCmd.execute");
  		}
  		Util.out4.println("Received device name = " + in_dev);
  
  //
  // Call the DServer object method which will do the work
  //
  
  		((DServer)(device)).restart(in_dev);
  		
  //	
  // Leave command
  //
  
  		return Util.return_empty_any("DevRestart");
  	}
docs: --------------------------------------------------------------------------