code: public void print(Object value) {
          Object object;
  
          try {
              object = getProperty("out");
          } catch (MissingPropertyException e) {
              DefaultGroovyMethods.print(System.out,value);
              return;
          }
  
          InvokerHelper.invokeMethod(object, "print", new Object[]{value});
      }
docs: Prints the value to the current 'out' variable which should be a PrintWriter
  or at least have a print() method defined on it.
  If there is no 'out' property then print to standard out.