private Object getReflectionConfig()

in safeguard-impl/src/main/java/org/apache/safeguard/impl/config/ConfigurationMapper.java [105:115]


    private <T extends Annotation> Object getReflectionConfig(final T instance,
                                                              final Method proxyMethod,
                                                              final Object[] args) {
        try {
            return proxyMethod.invoke(instance, args);
        } catch (final IllegalAccessException e) {
            throw new IllegalStateException(e);
        } catch (final InvocationTargetException e) {
            throw new IllegalStateException(e.getTargetException());
        }
    }