code: protected String getArgString(Object arg) {
          //if (arg instanceof LatLong) {
          //    return ((LatLong) arg).getVariableName();
          //} else 
          if (arg instanceof JavascriptObject) {
               return ((JavascriptObject) arg).getVariableName();
             // return ((JavascriptObject) arg).getPropertiesAsString();
          } else if( arg instanceof JavascriptEnum ) {
              return ((JavascriptEnum) arg).getEnumValue().toString();
          } else {
              return arg.toString();
          }
      }
docs: Takes the specified object and converts the argument to a String.
  
  @param arg The object to convert
  @return A String representation of the argument.