add @ResourcePresentConditional to polymorphic implementions,allow using
xml configuration to override default behavior (profile-based
selection).