/**
  * Gets fired when the forms result has changed. If its "fail", the upload has failed.
  *
  * @param result the result.
  */
 public void onFormResultChanged(final String result) {
   errorBox.setVisible(result.equals("fail"));
   if (!result.equals("fail")) {
     String[] results = result.split(",");
     if (results.length >= 4) {
       strategy.setX(Integer.parseInt(results[1]));
       strategy.setY(Integer.parseInt(results[2]));
       strategy.setCropSize(Integer.parseInt(results[3]));
     }
     onAvatarIdChanged(results[0]);
   }
 }