private String addBorder(Border border) {
		if (border == null || !border.isVisible() || border.getEdge() == null) {
			return "";
		}
		StringBuilder style = new StringBuilder();
		if (border.getEdge().getWidth() > -0.999) {
			if (Math.abs(border.getEdge().getWidth()) < 0.001) {
				style.append("border: none;");
			} else {

				if (border.getEdge().getType() == null) {
					style.append("border:");
					style.append(border.getEdge().getWidthPx());
					style.append("px solid ");
					style.append(colorToRgb(border.getEdge().getColor()));
					style.append(";");
				} else {
					if (border.getEdge().getType() == Edge.Type.lowered) {
						style.append("border:");
						style.append(border.getEdge().getWidthPx());
						style.append("px inset;");
					} else if (border.getEdge().getType() == Edge.Type.raised) {
						style.append("border:");
						style.append(border.getEdge().getWidthPx());
						style.append("px outset;");
					} else {
						log.warning("Unhandled border typ "
								+ border.getEdge().getType());
					}
				}
			}
		}
		return style.toString();
	}