Validate the injected packagePath and packageName, and add the @injected decorator.