A blueprint for building eXistdb xar applications