code: public static <T extends Entity> void replaceChildren(List<T> list, String parentId, Class<T> clazz) {
  		SQLiteRepository<T> repository = (SQLiteRepository<T>)AbstractApplication.get().getRepositoryInstance(clazz);
  		repository.replaceChildren(list, parentId);
  	}
docs: This method allows to replace all entity children of a given parent, it will remove any children which are not in
  the list, add the new ones and update which are in the list..
  
  @param list of children to replace.
  @param parentId id of parent entity.
  @param clazz entity class.