src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.java
/**
     * Removes the specified contact from its current parent and places it
     * under <tt>newParent</tt>.
     *
     * @param contactToMove the <tt>Contact</tt> to move
     * @param newParent the <tt>ContactGroup</tt> where <tt>Contact</tt>
     *   would be placed.
     */
Removes the specified contact from its current parent and places it
under newParent.

@param contactToMove the Contact to move
@param newParent the ContactGroup where Contact
would be placed.
Removes the specified contact from its current parent and places it under newParent . @param contactToMove the Contact to move @param newParent the ContactGroup where Contact would be placed .
public void moveContactToGroup(Contact contactToMove,
                                   ContactGroup newParent)
        throws OperationFailedException
    {
        assertConnected();
        if( !(contactToMove instanceof ContactJabberImpl) )
            throw new IllegalArgumentException(
                "The specified contact is not an jabber contact." +
                contactToMove);
        if( !(newParent instanceof AbstractContactGroupJabberImpl) )
            throw new IllegalArgumentException(
                "The specified group is not an jabber contact group."
                + newParent);
        ssContactList.moveContact((ContactJabberImpl)contactToMove,
                                  (AbstractContactGroupJabberImpl)newParent);
    }
public void moveContactToGroup ( Contact contactToMove , ContactGroup newParent ) throws OperationFailedException { assertConnected ( ) ; if ( ! ( contactToMove instanceof ContactJabberImpl ) ) throw new IllegalArgumentException ( "The specified contact is not an jabber contact." + contactToMove ) ; if ( ! ( newParent instanceof AbstractContactGroupJabberImpl ) ) throw new IllegalArgumentException ( "The specified group is not an jabber contact group." + newParent ) ; ssContactList . moveContact ( ( ContactJabberImpl ) contactToMove , ( AbstractContactGroupJabberImpl ) newParent ) ; }
Removes the specified contact from its current parent and places it
 under <tt>newParent</tt>.
Removes the specified contact from its current parent and places it under <tt > newParent< / tt > .