class CommunicationTemplate implements CommunicationOperations {

	public void connectTo(String subject, String body, String recipientId, ConnectionAuthorization connectionAuthorization) {
		Map<String, Object> mailboxItem = new HashMap<String,Object>();
		
		mailboxItem.put("recipients", new Recipients(Arrays.asList(recipientId)));
		mailboxItem.put("subject", subject);
		mailboxItem.put("body", body);
		String[] nameValue = connectionAuthorization.getValue().split(":");
		mailboxItem.put("item-content", new ItemContent(nameValue[0], nameValue[1]));
		
		restOperations.postForLocation(MESSAGING_URL, mailboxItem);
	}

	public  CommunicationTemplate(RestOperations restOperations);

}