persistent method is not filled in inject method