public PrivateData getPrivateData(final String elementName, final String namespace) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        // Create an IQ packet to get the private data.
        IQ privateDataGet = new PrivateDataIQ(elementName, namespace);

        PrivateDataIQ response = connection().createStanzaCollectorAndSend(
                        privateDataGet).nextResultOrThrow();
        return response.getPrivateData();
    }
public PrivateData getPrivateData ( final String elementName , final String namespace ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { IQ privateDataGet = new PrivateDataIQ ( elementName , namespace ) ; PrivateDataIQ response = connection ( ) . createStanzaCollectorAndSend ( privateDataGet ) . nextResultOrThrow ( ) ; return response . getPrivateData ( ) ; }
Returns the private data specified by the given element name and namespace. Each chunk
of private data is uniquely identified by an element name and namespace pair.<p>

If a PrivateDataProvider is registered for the specified element name/namespace pair then
that provider will determine the specific object type that is returned. If no provider
is registered, a {@link DefaultPrivateData} instance will be returned.

@param elementName the element name.
@param namespace the namespace.
@return the private data.
@throws XMPPErrorException
@throws NoResponseException
@throws NotConnectedException
@throws InterruptedException