private boolean createProvisioning(String xmlFileContent,ContactId myContact){
  String phoneNumber=myContact.toString();
  String configToParse=xmlFileContent.replaceAll(TOKEN_MSISDN,phoneNumber.substring(1));
  ProvisioningParser parser=new ProvisioningParser(configToParse,mRcsSettings);
  RcsSettingsData.GsmaRelease release=mRcsSettings.getGsmaRelease();
  CommonServiceConfiguration.MessagingMode messagingMode=mRcsSettings.getMessagingMode();
  mRcsSettings.setGsmaRelease(RcsSettingsData.GsmaRelease.ALBATROS);
  mRcsSettings.setMessagingMode(CommonServiceConfiguration.MessagingMode.NONE);
  try {
    parser.parse(release,messagingMode,true);
    mRcsSettings.setUserProfileImsDisplayName(phoneNumber);
    mRcsSettings.setFileTransferHttpSupported(mRcsSettings.getFtHttpServer() != null && mRcsSettings.getFtHttpLogin() != null && mRcsSettings.getFtHttpPassword() != null);
    return true;
  }
 catch (  SAXException e) {
    if (sLogger.isActivated()) {
      sLogger.debug(e.getMessage());
    }
    mRcsSettings.setGsmaRelease(release);
    mRcsSettings.setMessagingMode(messagingMode);
    return false;
  }
}

private boolean createProvisioning ( String xmlFileContent , ContactId myContact ) { String phoneNumber = myContact . toString ( ) ; String configToParse = xmlFileContent . replaceAll ( TOKEN_MSISDN , phoneNumber . substring ( 1 ) ) ; ProvisioningParser parser = new ProvisioningParser ( configToParse , mRcsSettings ) ; RcsSettingsData . GsmaRelease release = mRcsSettings . getGsmaRelease ( ) ; CommonServiceConfiguration . MessagingMode messagingMode = mRcsSettings . getMessagingMode ( ) ; mRcsSettings . setGsmaRelease ( RcsSettingsData . GsmaRelease . ALBATROS ) ; mRcsSettings . setMessagingMode ( CommonServiceConfiguration . MessagingMode . NONE ) ; try { parser . parse ( release , messagingMode , true ) ; mRcsSettings . setUserProfileImsDisplayName ( phoneNumber ) ; mRcsSettings . setFileTransferHttpSupported ( mRcsSettings . getFtHttpServer ( ) != null && mRcsSettings . getFtHttpLogin ( ) != null && mRcsSettings . getFtHttpPassword ( ) != null ) ; return true ; } catch ( SAXException e ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( e . getMessage ( ) ) ; } mRcsSettings . setGsmaRelease ( release ) ; mRcsSettings . setMessagingMode ( messagingMode ) ; return false ; } }
parse the provisioning data then save it into rcs settings provider
