public ResourceAddress newResourceAddress ( String location , String nextProtocol ) { if ( nextProtocol != null ) { ResourceOptions options = ResourceOptions . FACTORY . newResourceOptions ( ) ; options . setOption ( NEXT_PROTOCOL , nextProtocol ) ; return newResourceAddress ( location , options ) ; } else { return newResourceAddress ( location ) ; } }
convenience method only consider removing from API