if( StringUtils.isNullOrEmpty( optional ) || optional.equals( "false" )
|| ( optional.equals( "true" ) && SoapUI.getSettings().getBoolean( WsaSettings.ENABLE_FOR_OPTIONAL ) ) )
{
interfaceWsaVersion = WsaVersionTypeConfig.X_200508.toString();
}
Policy innerPolicy = addressing.getPolicy();
if( innerPolicy != null )
{
List<AnonymousResponses> anonymousList = innerPolicy.getAnonymousResponsesList();
List<NonAnonymousResponses> nonAnonymousList = innerPolicy.getNonAnonymousResponsesList();
if( anonymousList.size() > 0 && nonAnonymousList.size() > 0 )
{
throw new Exception(
"Wrong addressing policy, anonymousResponses and nonAnonymousResponses can not be specified together" );
}