Duplicates odf.Formatting.getStyleElement, or? Perhaps the implementation there should be moved over here.