public void addUpdate(UserCredential userCredential) {
   configManager.updateXML(
       USER_CREDENTIALS_CONFIG, newAddUpdateUserCredentialsDocumentAlteration(userCredential));
   if (userCredential.getServiceKey() != null) {
     usersWithServiceKey.add(userCredential.getUsername());
   }
 }
 public void removeGroup(String codeGroup) {
   configManager.updateXML(USER_CREDENTIALS_CONFIG, newRemoveGroupDocumentAlteration(codeGroup));
 }
 public void removeToken(String token) {
   configManager.updateXML(USER_CREDENTIALS_CONFIG, newRemoveTokenDocumentAlteration(token));
 }
 public void removeUserCredentialFromCollection(UserCredential userCredential, String collection) {
   configManager.updateXML(
       USER_CREDENTIALS_CONFIG, newRemoveUserDocumentAlteration(userCredential, collection));
 }
 public void removeCollection(String collection) {
   configManager.updateXML(
       USER_CREDENTIALS_CONFIG, newRemoveCollectionDocumentAlteration(collection));
 }