public boolean isAdmin(JID user) {
        final boolean result;
        if (getOwners().contains(user) || getService().isServiceAdmin(user)) {
            result = true;
        }
        // Check if we should try again but using the bare JID
        else if (user.getResource() != null) {
            user = user.asBareJID();
            result = isAdmin(user);
        } else {
            result = false;
        }
        getLogger().trace("'{}' {} an admin.", user, result ? "is" : "is not");
        return result;
    }
Returns true if the specified user is allowed to administer the node. Node
administrator are allowed to retrieve the node configuration, change the node
configuration, purge the node, delete the node and get the node affiliations and
subscriptions.

@param user the user to check if he is an admin.
@return true if the specified user is allowed to administer the node.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java