CTBorder border = (CTBorder)getObject();
if (border==null) return;
if (border.getVal()!=null) {
STBorder stBorder = border.getVal();
log.debug("border: " + stBorder);
if (stBorder.equals(STBorder.NIL)
|| stBorder == STBorder.NONE) {
foElement.setAttribute(CSS_NAME__STYLE, "none");
} else if (stBorder==STBorder.SINGLE) {
// can use == or .equals
foElement.setAttribute(CSS_NAME__STYLE, "solid");
} else if (stBorder == STBorder.DOUBLE
|| stBorder == STBorder.DOTTED
|| stBorder == STBorder.DASHED
|| stBorder == STBorder.OUTSET
|| stBorder == STBorder.INSET) {
foElement.setAttribute(CSS_NAME__STYLE, stBorder.value() );
} else {
// fallback
log.warn("Falling back to solid");
foElement.setAttribute(CSS_NAME__STYLE, "solid");
}