class LoggingProxyBuilder {

    static <API, INSTANCE extends API> Class<?> getCategory(Class<API> apiInterface, INSTANCE instance) {
        if (instance == null || instance instanceof java.lang.reflect.Proxy) {
            return apiInterface;
        }
        return instance.getClass();
    }

    public  LoggingProxyBuilder(Class<API> apiInterface, INSTANCE instance);

}