replacing package resource definition by realize call