code: public Long getLong(String name) {
          Object o = get(name);
          if (o instanceof Number) {
              return ((Number)o).longValue();
          }
  
          if (o != null) {
              try {
                  return Long.parseLong(o.toString());
              }
              catch (NumberFormatException e) {}
          }
          return null;
      }
docs: Helper method for obtaining long value from parameter
  @param name The name of the parameter
  @return The long value or null if there isn't one