Fix keyring
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / CmsState.java
index 7906c28faf99473f6d3190f78f4a64193a59ea14..9ff1540a7bf3f1d6d9eb498279f57697e15aef63 100644 (file)
@@ -8,8 +8,6 @@ import java.io.File;
 import java.net.InetAddress;
 import java.net.UnknownHostException;
 import java.util.ArrayList;
-import java.util.Dictionary;
-import java.util.Hashtable;
 import java.util.List;
 import java.util.Locale;
 import java.util.UUID;
@@ -102,9 +100,8 @@ public class CmsState implements NodeState {
                // Security
                NodeUserAdmin userAdmin = new NodeUserAdmin(AuthConstants.ROLES_BASEDN);
                shutdownHooks.add(() -> userAdmin.destroy());
-               Dictionary<String, Object> props = new Hashtable<>();
-               props.put(Constants.SERVICE_PID, NodeConstants.NODE_USER_ADMIN_PID);
-               bc.registerService(ManagedServiceFactory.class, userAdmin, props);
+               bc.registerService(ManagedServiceFactory.class, userAdmin,
+                               LangUtils.init(Constants.SERVICE_PID, NodeConstants.NODE_USER_ADMIN_PID));
        }
 
        private void initTransactionManager() {