public void save(AtrilSession oSes)
throws ClassCastException, RuntimeException, IllegalStateException, NullPointerException, DmsDocumentModificationException,
NotYetConnectedException, DmsException, RecentlyUsedPasswordException, OldPasswordWrongOnPasswordChangeException {
if (getEmail()==null) throw new NullPointerException("User e-mail cannot be null");
if (exists(oSes,"user_uuid",sNickName)==null) throw new ElementNotFoundException("Cannot find any user with uuid "+sNickName);
String sAllowedServices = "";
for (CaptureService s : allowedServices())
sAllowedServices += (sAllowedServices.length()==0 ? "" : ",") + String.valueOf(s.toInt());
put ("allowed_services", sAllowedServices);