private static void captureNodeAsAttributes(final MultiComplexNode node,
                                                final String attributePrefix,
                                                final Map<String, Object> personAttributes) {
        node.getDisplay().ifPresent(value -> personAttributes.put("%sDisplay".formatted(attributePrefix), value));
        node.getValue().ifPresent(value -> personAttributes.put("%sValue".formatted(attributePrefix), value));
        node.getRef().ifPresent(value -> personAttributes.put("%sRef".formatted(attributePrefix), value));
        node.getType().ifPresent(value -> personAttributes.put("%sType".formatted(attributePrefix), value));
    }
Gets person from SCIM server.

@param uid the uid
@return the person
support/cas-server-support-scim-core/src/main/java/org/apereo/cas/scim/v2/persondirectory/ScimPersonAttributeService.java