odf.Formatting.createDerivedStyleObject is designed to help with this. The current implementation here will discard additional information such as the parent paragraph style name. See DirectParagraphStyler.applyParagraphDirectStyling for examples of use.