defined specimen requirement factory spring bean