Use interface instead of reflection

Do not use reflection and check using the interface that offers the methods used by the gauge.