private Object upgradeObject(Object entity) {
   V2Convertible result = null;
   if (entity != null) {
     result =
         v2VersionConverterChain.upgrade(
             new V2Convertible(entity, externalVersion),
             MemberV2ApiServiceDelegator.LATEST_V2_VERSION);
   }
   return result.getObjectToConvert();
 }
 private Response downgradeResponse(Response response) {
   Object entity = response.getEntity();
   V2Convertible result = null;
   if (entity != null) {
     result =
         v2VersionConverterChain.downgrade(
             new V2Convertible(entity, MemberV2ApiServiceDelegator.LATEST_V2_VERSION),
             externalVersion);
     return Response.fromResponse(response).entity(result.getObjectToConvert()).build();
   }
   return response;
 }