question: private Element createEndPoint ( String name , String attrBinding , String attrLocation , String attrResponseLocation ) throws DOMException { if ( name == null ) { throw new IllegalArgumentException ( "Null name" ) ; } if ( attrBinding == null ) { throw new IllegalArgumentException ( "Null binding" ) ; } if ( attrLocation == null ) { throw new IllegalArgumentException ( "Null location" ) ; } Element endPt = doc . createElement ( name ) ; endPt . setAttribute ( SAMLNames . BINDING , attrBinding ) ; endPt . setAttribute ( SAMLNames . LOCATION , attrLocation ) ; if ( attrResponseLocation != null ) { endPt . setAttribute ( SAMLNames . RESPLOC , attrResponseLocation ) ; } return endPt ; }
target:  Create end point element in DOM.