implement get resource and package manager from package context