code: public static Rectangle mapToRect(Map<String, Object> map) {
          return new Rectangle(toSeleniumCoordinate(map.get("x")),
                  toSeleniumCoordinate(map.get("y")),
                  toSeleniumCoordinate(map.get("height")),
                  toSeleniumCoordinate(map.get("width")));
      }
docs: Transforms a map into {@link Rectangle} object.
  
  @param map the source map.
  @return {@link Rectangle} object