* @return filter that returns true iff currently a shared project exists
* and the message was from the host of this shared project.
*/
public static PacketFilter getFromHostFilter(
final SarosSessionManager sessionManager) {
return new PacketFilter() {
public boolean accept(Packet packet) {
ISarosSession sarosSession = sessionManager.getSarosSession();
return sarosSession != null
&& sarosSession.getHost().getJID()