List so = new ArrayList(); so = dokument.getMainDocumentPart().getJAXBNodesViaXPath("//w:p", false); Iterator itOds = so.iterator(); while (itOds.hasNext()) { P ods = (P) itOds.next(); Style st =getStyleofPara(ods); //it works well, got right style String text = vratTextOdstavce(ods); Para odsa = new Para(st, text); [b]//write properties of style works well[/b], it is right style listPara.add(odsa);//also right style }//but here, styles from the list listPara is different paragraphs(with right content) but with all same styles//styles of all paragraphs are the same, but in while cykle it was right styles return listPara; }