throws Failure, WebApplicationException {
String clientApiVer =
request.getHttpHeaders().getRequestHeaders()
.getFirst(RestConstant.HEADER_VERSION_NO);
String serverApiVer = VersionUtility.getAPIVersionInfo().getVersionNo();
VersionManager verManager =
ServiceLocator.instance().getInstance(VersionManager.class);
return verManager.checkVersion(clientApiVer, serverApiVer) ? null
: ServerResponse
.copyIfNotServerResponse(Response
.status(Status.PRECONDITION_FAILED)
.entity("Client API Version '"
+ clientApiVer