if (getConfDocument().getConfiguration().getRegistration() != null) {
int n = getConfDocument().getConfiguration().getRegistration().getCounter();
getConfDocument().getConfiguration().getRegistration().setCounter(n+1);
}
else {
Registration reg = Registration.Factory.newInstance();
reg.setEmailaddress("");
reg.setDisabled(false);
reg.setCounter(0);
getConfDocument().getConfiguration().setRegistration(reg);
}
getConfDocument().save(file, xmlOptions);
LoggerManager.info(Constants.CONFIG_LOGGER,