### Which methods to use for the deprecated ones

Posted:

**Wed Mar 30, 2016 12:21 am**I came across certain methods like

Now in these .filter() and .getJaxbElement() are deprecated. I am using 3.2.1 version of docx4j. Can u please suggest me what would be the replacement method for these. These are just a few and I have 3-4 more for which I need to know the now-recommended methods which currently are deprecated. Although the stuff works but the support might be taken away. Can u tell me or direct me to a place where I get to know what all method to use for the ones deprecated.

- Code: Select all
`wmlPackage.filter(filterSettings);`

- Code: Select all
`org.docx4j.wml.Document wmlDocumentEl = wmlPackage.getMainDocumentPart().getJaxbElement();`

Now in these .filter() and .getJaxbElement() are deprecated. I am using 3.2.1 version of docx4j. Can u please suggest me what would be the replacement method for these. These are just a few and I have 3-4 more for which I need to know the now-recommended methods which currently are deprecated. Although the stuff works but the support might be taken away. Can u tell me or direct me to a place where I get to know what all method to use for the ones deprecated.