private static void move ( BareJid entity , Map < BareJid , Map < Resourcepart , Presence > > from , Map < BareJid , Map < Resourcepart , Presence > > to ) { Map < Resourcepart , Presence > presences = from . remove ( entity ) ; if ( presences != null && ! presences . isEmpty ( ) ) { to . put ( entity , presences ) ; } }
Move presences from entity from one presence map to another .