using reflection to avoid the dependency on mett-server