@Override
  public void onSubmit(ArrayList<String> array) {

    String titleCode = "";
    String currencyCode = "";
    String languageCode = "";

    for (GenericNameCode obj : mTitles) {
      if (StringUtils.equalsIgnoreCase(obj.getName(), array.get(0).toString())) {
        titleCode = obj.getCode();
        break;
      }
    }

    for (GenericNameCode obj : mCurrencies) {
      if (StringUtils.equalsIgnoreCase(obj.getName(), array.get(3).toString())) {
        currencyCode = obj.getIsocode();
        break;
      }
    }

    for (GenericNameCode obj : mLanguages) {
      if (StringUtils.equalsIgnoreCase(obj.getName(), array.get(4).toString())) {
        languageCode = obj.getIsocode();
        break;
      }
    }

    QueryCustomer query = new QueryCustomer();
    query.setFirstName(array.get(1));
    query.setLastName(array.get(2));
    query.setTitleCode(titleCode);
    query.setLanguage(languageCode);
    query.setCurrency(currencyCode);

    RESTLoader.execute(this, WebserviceMethodEnums.METHOD_UPDATE_PROFILE, query, this, true, true);
  }
 private void loadCurrencies() {
   RESTLoader.execute(this, WebserviceMethodEnums.METHOD_CURRENCIES, null, this, true, true);
 }
 private void loadLanguages() {
   RESTLoader.execute(this, WebserviceMethodEnums.METHOD_LANGUAGES, null, this, true, true);
 }
 private void loadTitles() {
   RESTLoader.execute(this, WebserviceMethodEnums.METHOD_TITLES, null, this, true, true);
 }