Keep the previous logic, in case there is no registered resource return null