/**
* {@inheritDoc}
*/
@Override
public AtmosphereRequestBuilder newRequestBuilder(Class<AtmosphereRequest.AtmosphereRequestBuilder> clazz) {
AtmosphereRequestBuilder b;
try {
b = clazz.newInstance();
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
return AtmosphereRequestBuilder.class.cast(b.resolver(FunctionResolver.DEFAULT));
}