A pure java stub resolver