private Set<JID> removeAllFromBlocklist( User user )
    {
        Log.debug( "Obtain the default privacy list for '{}'", user.getUsername() );
        final Set<JID> result = new HashSet<>();
        PrivacyList defaultPrivacyList = PrivacyListManager.getInstance().getDefaultPrivacyList( user.getUsername() );
        if ( defaultPrivacyList == null )
        {
            return result;
        }

        Log.debug( "Removing all JIDs from blocklist '{}' (belonging to '{}')", defaultPrivacyList.getName(), user.getUsername() );
        final Element listElement = defaultPrivacyList.asElement();
        final Set<Element> toRemove = new HashSet<>();
        for ( final Element element : listElement.elements( "item" ) )
        {
            if ( "jid".equals( element.attributeValue( "type" ) )
                && "deny".equals( element.attributeValue( "action" ) ) )
            {
                toRemove.add( element );
                result.add( new JID( element.attributeValue( "value" ) ) );
            }
        }

        if ( !toRemove.isEmpty() )
        {
            for ( final Element remove : toRemove )
            {
                listElement.remove( remove );
            }

            defaultPrivacyList.updateList( listElement );
            PrivacyListProvider.getInstance().updatePrivacyList( user.getUsername(), defaultPrivacyList );
        }
        return result;
    }
Removes all JIDs from the blocklist of the provided user.

This method removes the JIDs to the default privacy list. When no default privacy list exists for this user, this
method does nothing.

@param user The owner of the blocklist to which JIDs are to be added (cannot be null).
@return The JIDs that are removed (never null, possibly empty).
xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQBlockingHandler.java