Extract user-details-service from spring security.
Use helper generated copy method.