question: public static void appendChildrenWithTwoAttributesFromList ( final Document doc , final Element parentElement , final List < String > list , final String childName , final String attrOneKey , final String attrTwoKey , final String attrTwoFixValue ) { for ( final String attrOneValue : list ) { final Element newChild = doc . createElement ( childName ) ; newChild . setAttribute ( attrOneKey , attrOneValue ) ; newChild . setAttribute ( attrTwoKey , attrTwoFixValue ) ; parentElement . appendChild ( newChild ) ; } }
target:  Appends new Elements to parentElement from list having two attributes. Attribute 1 is coming from the provided list Attribute 2 has a fix value for all new elements