public List<String> validate() {
		List<String> errorMessages = new ArrayList<String>();
	    if (hostNameOrIpAddress.length() == 0) {
	    	errorMessages.add(DefaultFactory.getFactory().getMessages().getInvalidHostMessage());
	    }
	    if (port <= 0) {
	    	errorMessages.add(DefaultFactory.getFactory().getMessages().getInvalidPortMessage());
	    }
		return errorMessages;
	}