Use spring when available