private void handleFriendshipCommand(FriendshipRequestCommand command) {
		if(command.isAccepted()) {
			dbOperator.addFriendship(command.getSenderId(), command.getReceiverId());
			// send status change commands
			ClientData receiver = mClient; // if a user is accepted the request the current user is the receiver
			ClientData sender = userRegistry.getClient(command.getSenderId());
			
			if(receiver != null) {// send status change to the receiver
				StatusChangedCommand statusComm = sender != null 
					? StatusChagedCommandFactory.makeOFFToONCommand(command.getSenderId())
					: StatusChagedCommandFactory.makeONToOFFCommand(command.getSenderId());
				
				receiver.addMsgForSending(statusComm);
			}
			
			if(sender != null) {
				StatusChangedCommand statusComm = receiver != null 
						? StatusChagedCommandFactory.makeOFFToONCommand(command.getReceiverId())
						: StatusChagedCommandFactory.makeONToOFFCommand(command.getReceiverId());
					
				sender.addMsgForSending(statusComm);
			}
		} else if(command.isDenied()) {
			dbOperator.deleteFriendshipRequests(command.getSenderId(), command.getReceiverId());
		} else {
			dbOperator.addFriendshipRequest(
					command.getSenderId()
					, command.getSenderName()
					, command.getReceiverId()
					, command.getReceiverName()
					, command.getMessage()
					, command.getDate()
			);
			// if the receiver is online send him the request
			ClientData receiver = userRegistry.getClient(command.getReceiverId());
			if(receiver != null) {
				receiver.addMsgForSending(command);
			}
		}
	}