// initialization of this instance, RuntimeDelegate.getInstance() is invoked which causes a method
// call to com.sun.ws.rs.ext.RuntimeDelegateImpl (see EntityTagMatchHeaderDelegate).
// Other frameworks face similar issues using JAX-RS, see for example this URL for the exact same
// problem in the Restlet framework: http://www.mail-archive.com/discuss@restlet.tigris.org/msg07539.html
// The nasty fix is to set some dummy RuntimeDelegate first, then set the Wink RuntimeDelegateImpl
RuntimeDelegate.setInstance(new RuntimeDelegate() {
@Override
public <T> T createEndpoint(Application arg0, Class<T> arg1) throws IllegalArgumentException,
UnsupportedOperationException {
return null;
}