Create Spring Beans using Factory Methods