ServiceLocator.getServiceForName(serviceName) has been deprecated.
The alternative is getClientService(clientId, serviceName, serviceVersion )
clientId - the OID of the client the service belongs to (optional; if not set, only global services will be considered)
Where can I find the of a clientId service?
I think the 'clientId' in the above method refers to the Client Code for the Organisation where the target service exists.
So, if you look at Forms > Organisations, the table has a column for 'Organisation Name' and 'Client Code'.
That allows you to 'get' a service from a specific client, rather than from the global namespace.
Hope that helps.