call stub.getInitializerText only when stub exists