public JiraSite[] getSites() {
   return sites.toArray(new JiraSite[0]);
 }
 @Override
 public boolean configure(StaplerRequest req, JSONObject formData) {
   sites.replaceBy(req.bindJSONToList(JiraSite.class, formData.get("sites")));
   save();
   return true;
 }
 public void setSites(JiraSite site) {
   sites.add(site);
 }
 @Override
 public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
   tokenPairs.replaceBy(req.bindParametersToList(TokenPair.class, "tokenPair."));
   save();
   return true;
 }
 /** {@inheritDoc} */
 @Override
 public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
   sites.replaceBy(req.bindParametersToList(JIRASite.class, PARAMETER_PREFIX));
   save();
   return true;
 }
 /**
  * Get all the configured {@link JIRASite} objects in an Array
  *
  * @return the {@link JIRASite} array
  */
 public JIRASite[] getSites() {
   return sites.toArray(new JIRASite[0]);
 }
 /**
  * Add a Site to the Configuration
  *
  * @param site the {@link JIRASite} to add
  */
 public void setSites(JIRASite site) {
   sites.add(site);
 }