Service to pid and vice versa

In Solaris 10 widely used concept of “service”.
Each service can start some daemons, but information, what service start this or that daemon sometimes isn’t obvious.
In Solaris 10 each process has new field :ctid – contract ID of the process.
so, ps -ef -o pid,ctid,comm will show you contract ID for all processes.
And
svcs -a -o FMRI,CTID – about Contract ID for each service.
Now you can find all processes, for ftp service, for example :

ps -ef -o pid,ctid,comm |grep `svcprop -p restarter/contract svc:/network/ftp:default`