check1ToN(target);
//first, create standalone auth-realm
Config config = getConfigBeanForTarget(target);
SecurityService secService = config.getSecurityService();
ManagedConfigBean mcbSecService = getManagedConfigBean(secService);
AuthRealm authRealm = (AuthRealm)mcbSecService.createChildByType(
ServerTags.AUTH_REALM, attrs, props);
// Second, check keyfile
// we need to create empty keyfile if it's not exist
// file should exist already - synchronization problems???
checkAndCreateAuthRealmKeyFile(authRealm);
// Finally, add auth-realm o config context
mcbSecService.addChildBean(ServerTags.AUTH_REALM, authRealm, false);
return getConfigBeanObjectName(authRealm);
}