if (FileKeyManager.class.getName().equals(clazz)) {
return new FileKeyManager(runtimeManager);
} else if (NullKeyManager.class.getName().equals(clazz)) {
return new NullKeyManager();
} else if (MemoryKeyManager.class.getName().equals(clazz)) {
return new MemoryKeyManager();
} else {
try {
Class<?> mgrClass = Class.forName(clazz);
return (IPublicKeyManager) mgrClass.newInstance();
} catch (Exception e) {