static OIDCClientRepresentationExtended toExternalResponse(KeycloakSession session, ClientRepresentation client, URI uri ) { String softStatement = client.getAttributes().get("software_statement"); OIDCClientRepresentation clientRep = DescriptionConverter.toExternalResponse(session, client, uri); OIDCClientRepresentationExtended response = new OIDCClientRepresentationExtended(); ObjectMapper mapper = new ObjectMapper(); try { String clientRepStr = mapper.writeValueAsString(clientRep); response = mapper.readValue(clientRepStr, OIDCClientRepresentationExtended.class); response.setSoftwareStatement(softStatement); return response; } catch (IOException e) { ServicesLogger.LOGGER.warn( "Failed to convert ClientRepresentation to OIDCClientRepresentationExtended. Exception: {}", e.getMessage(), e ); } return response; }