private AliasedDiscoveryConfig deserializeAliasedDiscoveryConfig(
            JsonObject json, String tag) {
        JsonValue configJson = json.get(tag);
        if (configJson != null && !configJson.isNull()) {
            AliasedDiscoveryConfigDTO dto = new AliasedDiscoveryConfigDTO(tag);
            dto.fromJson(configJson.asObject());
            return dto.getConfig();
        }
        return null;
    }
private AliasedDiscoveryConfig deserializeAliasedDiscoveryConfig ( JsonObject json , String tag ) { JsonValue configJson = json . get ( tag ) ; if ( configJson != null && ! configJson . isNull ( ) ) { AliasedDiscoveryConfigDTO dto = new AliasedDiscoveryConfigDTO ( tag ) ; dto . fromJson ( configJson . asObject ( ) ) ; return dto . getConfig ( ) ; } return null ; }
Deserializes the aliased discovery config nested under the {@code tag} in the provided JSON.

@param json the JSON object containing the serialized config
@param tag  the tag under which the config is nested
@return the deserialized config or {@code null} if the serialized config
was missing in the JSON object