Re-implemented resolving of custom service.