}
private ModuleDescriptor newModuleDescriptor(UAK uak, String mod_org, String mod_name, String mod_rev, Long creator_id, int visibility) {
ModuleDescriptorDao dao = WOJServer.getInstance().getDataService().getModuleDescriptorDao();
long mrid = getNewMrid(uak);
return (ModuleDescriptor)dao.create(mrid, creator_id, mod_org, mod_name, mod_rev, Visibility.fromInt(visibility));
}
private synchronized long getNewMrid(UAK uak) {
if (_lastUsedMrid == -1 || _lastUsedMrid >= _reservedUntil) {
WOJServer.getInstance().getDataService().getModuleDescriptorDao().getTransactionTemplate().execute(new TransactionCallbackWithoutResult() {