src/net/java/sip/communicator/impl/protocol/jabber/OperationSetChangePasswordJabberImpl.java
/**
     * Returns true if the server supports password changes. Checks for
     * XEP-0077 (inband registrations) support via disco#info.
     *
     * @return True if the server supports password changes, false otherwise.
     */
Returns true if the server supports password changes. Checks for
XEP-0077 (inband registrations) support via disco#info.

@return True if the server supports password changes, false otherwise.
Returns true if the server supports password changes . Checks for XEP - 0077 ( inband registrations ) support via disco#info . @return True if the server supports password changes false otherwise .
public boolean supportsPasswordChange()
    {
        try
        {
            Jid service = JidCreate.from(
                protocolProvider.getAccountID().getService());
            DiscoverInfo discoverInfo
                    = protocolProvider.getDiscoveryManager()
                        .discoverInfo(service);
            return discoverInfo.containsFeature(
                        ProtocolProviderServiceJabberImpl.URN_REGISTER);
        }
        catch(Exception e)
        {
            if(logger.isInfoEnabled())
                logger.info("Exception occurred while trying to find out if" +
                        " inband registrations are supported. Returning true" +
                        "anyway.");
            /* It makes sense to return true if something goes wrong, because
                failing later on is not fatal, and registrations are very
                likely to be supported.
             */
            return true;
        }
    }
public boolean supportsPasswordChange ( ) { try { Jid service = JidCreate . from ( protocolProvider . getAccountID ( ) . getService ( ) ) ; DiscoverInfo discoverInfo = protocolProvider . getDiscoveryManager ( ) . discoverInfo ( service ) ; return discoverInfo . containsFeature ( ProtocolProviderServiceJabberImpl . URN_REGISTER ) ; } catch ( Exception e ) { if ( logger . isInfoEnabled ( ) ) logger . info ( "Exception occurred while trying to find out if" + " inband registrations are supported. Returning true" + "anyway." ) ; /* It makes sense to return true if something goes wrong, because
                failing later on is not fatal, and registrations are very
                likely to be supported.
             */ return true ; } }
Returns true if the server supports password changes.
Returns true if the server supports password changes .