}
}
private EndpointReferenceType build2003_03_EPR( )
{
EndpointReferenceType endpointReferenceType = EndpointReferenceType.Factory.newInstance( );
AttributedURI attributedURI = endpointReferenceType.addNewAddress( );
attributedURI.setStringValue( m_address );
if ( m_portTypeQName != null )
{
AttributedQName attributedQName = endpointReferenceType.addNewPortType( );
attributedQName.setQNameValue( m_portTypeQName );
}
if ( m_servicePortName != null )
{
ServiceNameType serviceNameType = endpointReferenceType.addNewServiceName( );
if ( m_serviceQName != null )
{
serviceNameType.setQNameValue( m_serviceQName );
}
serviceNameType.setPortName( m_servicePortName );
}
if ( m_refProps != null )
{
ReferencePropertiesType refPropsType = endpointReferenceType.addNewReferenceProperties( );
addToHolderType( refPropsType, m_refProps );
}
return endpointReferenceType;
}