code: private String getDirectionString(String direction) {
          if (direction == null || !(direction.equals("Start") || direction.equals("End"))) {
              getLogger().debug("Unrecognized direction string. The standard value 'Start' will be used.");
              return "Start";
          }
          return direction;
      }
docs: Returns the direction in which the padding will be done. If the direction string is null or invalid, 'Start' will
  be taken instead.