public UserRegistry getUserRegistry() {
        SibTr.entry(tc, CLASS_NAME + "getUserRegistry");

        UserRegistry userRegistry = null;
        if (getSecurityService() != null) {
            UserRegistryService userRegistryService = securityService
                            .getUserRegistryService();
            try {
                if (userRegistryService.isUserRegistryConfigured()) {
                    userRegistry = userRegistryService.getUserRegistry();
                } else {
                    MessagingSecurityException mse = new MessagingSecurityException();
                    FFDCFilter.processException(mse, CLASS_NAME + ".getUserRegistry", "1005", this);
                    SibTr.exception(tc, mse);
                    SibTr.error(tc, "USER_REGISTRY_NOT_CONFIGURED_MSE1005");
                }
            } catch (RegistryException re) {
                MessagingSecurityException mse = new MessagingSecurityException(re);
                FFDCFilter.processException(mse, CLASS_NAME + ".getUserRegistry", "1006", this);
                SibTr.exception(tc, mse);
                SibTr.error(tc, "USER_REGISTRY_EXCEPTION_MSE1006");
            }
        }

        SibTr.exit(tc, CLASS_NAME + "getUserRegistry", userRegistry);
        return userRegistry;
    }
public UserRegistry getUserRegistry ( ) { SibTr . entry ( tc , CLASS_NAME + "getUserRegistry" ) ; UserRegistry userRegistry = null ; if ( getSecurityService ( ) != null ) { UserRegistryService userRegistryService = securityService . getUserRegistryService ( ) ; try { if ( userRegistryService . isUserRegistryConfigured ( ) ) { userRegistry = userRegistryService . getUserRegistry ( ) ; } else { MessagingSecurityException mse = new MessagingSecurityException ( ) ; FFDCFilter . processException ( mse , CLASS_NAME + ".getUserRegistry" , "1005" , this ) ; SibTr . exception ( tc , mse ) ; SibTr . error ( tc , "USER_REGISTRY_NOT_CONFIGURED_MSE1005" ) ; } } catch ( RegistryException re ) { MessagingSecurityException mse = new MessagingSecurityException ( re ) ; FFDCFilter . processException ( mse , CLASS_NAME + ".getUserRegistry" , "1006" , this ) ; SibTr . exception ( tc , mse ) ; SibTr . error ( tc , "USER_REGISTRY_EXCEPTION_MSE1006" ) ; } } SibTr . exit ( tc , CLASS_NAME + "getUserRegistry" , userRegistry ) ; return userRegistry ; }
Get User Registry from the Liberty Security component

@return UserRegistry