added templated into link but protected it against modification so that only subclasses can use it to try and protect from devating too far from the original implementation and hopefully to stay in line with what the guys at the spring hateoas project eventually do.

there was some problem with all the added attributes added in the subclass not getting rendered into json. not quite sure what is going on with that but for the moment going to try this method and see if it works.