Using spring managed beans inside a non-managed object