@Override
    public String describe(final Object object) {
        if (object == null) {
            return UNKNOWN_OBJECT_DESCRIPTION;
        }
        final StringBuilder desc = new StringBuilder();
        final String objectType = getObjectType(object);
        if (objectType != null) {
            desc.append(objectType);
        }

        final String objectName = getObjectName(object);
        if (objectName != null) {
            desc.append(" \"");
            desc.append(objectName);
            desc.append("\"");
        }

        final String objectId = getObjectId(object);
        if (objectId != null) {
            desc.append(" id=");
            desc.append(objectId);
        }

        return desc.toString();
    }
Shallow merge of the two Purpose objects
stroom-event-logging/stroom-event-logging-impl/src/main/java/stroom/event/logging/impl/StroomEventLoggingServiceImpl.java