class DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator {

    static @Nullable Object convertJcrValue(final @NotNull Value value) throws RepositoryException {
        switch (value.getType()) {
            case PropertyType.STRING:
                return value.getString();
            case PropertyType.DATE:
                return value.getDate();
            case PropertyType.DOUBLE:
                return value.getDouble();
            case PropertyType.LONG:
                return value.getLong();
            case PropertyType.BOOLEAN:
                return value.getBoolean();
        }
        return null;
    }

}