@Override public RangerAccessRequest deserialize( JsonElement jsonObj, Type type, JsonDeserializationContext context) throws JsonParseException { RangerAccessRequestImpl ret = gsonBuilder.fromJson(jsonObj, RangerAccessRequestImpl.class); ret.setAccessType(ret.getAccessType()); // to force computation of isAccessTypeAny and // isAccessTypeDelegatedAdmin return ret; }