You can set a process group detection rule to group all processes into one process group. If you have a property that is equal among all processes, and Dynatrace can use it to composite new process groups, it would form one process group and enable you to merge the services.
It is possible to only apply this process group detection rule to WebSphere processes. It is also possible to use other properties that are equal among all the WebSphere processes and use them in the detection rule.Then if you restart the WebSphere processes it should be re-composited based on the detection rule you set.
I would use a process property, then expand each Process’s properties and find the commonality between them. Like Command line args, EXE name, and so on