protected String[] toResources(final Object[] args) {
        val object = args[0];
        if (object instanceof final AuthenticationTransaction transaction) {
            return new String[]{tranactionToResourceString(transaction)};
        }
        return new String[]{toResourceString(CollectionUtils.wrap(object))};
    }
Converts the Credential object into a String resource identifier.

@author Scott Battaglia
@since 3.1.2
core/cas-server-core-audit-api/src/main/java/org/apereo/cas/audit/spi/resource/CredentialsAsFirstParameterResourceResolver.java