code: public void setRotation(String rotation) {
          if (rotation != null) {
              try {
                  setRotation(Integer.parseInt(rotation));
              } catch (NumberFormatException e) {
                  setRotation(-1);
              }
          }
      }
docs: Set the degrees of rotation. Value will be set to -1, if not available.
  
  @param rotation