Handle own instance creation properly: create it only if neither bean reference was provided nor instance was set programmatially.