Bad Request Error when calling Workgroup.isAvailable

Hi there,

I have a small problem. We are upgrading our chat application to the open source version and now Workgroup.isAvailable always returns false with a 400 - bad request error. Any help would be greatly appreciated.

Connection code:

ConnectionConfiguration config = new ConnectionConfiguration(host,port);
XMPPConnection newConnection = new XMPPConnection(config);
newConnection.connect();

                newConnection.addConnectionListener(SupportAccount.this);
                newConnection.loginAnonymously();
              
                connection = newConnection;
               
               
                // Announce presence
                Presence presence = new Presence(Presence.Type.available, "", 0, Presence.Mode.available);
                connection.sendPacket(presence);

//this all works fine.

workgroup = new Workgroup(workgroupName, account.getConnection());

//this works aswell (I think)

while(!workgroup.isAvailable()) {
try {
Thread.sleep(3000);
}catch (InterruptedException e) { }
}

//this always returns false .