[spring] Using init and destroy method for beans.