work in progress - using restlet-utils and other code from OAS