I wonder if we don't want a bit of clarity in our naming here.  We can use %s and document that this is the package, or we could create a super-mini template language here, so someone can more obviously declare ${package} and ${type} for package and class (the original type) or whatever.  What you have here is easier, but more obscure to the reader of the class source code.  I don't have THAT strong an opinion on the matter.