I would not use  vc.createExtension like it is. I would refactor this method, separate a past which returns the URI from the rest and just call it.