using reflections to instantiate identity plugin