public static JMXServiceURL getLocalConnectorAddress(Process p, boolean startAgent) {
        return getLocalConnectorAddress(Integer.toString(getPid(p)), startAgent);
    }
public static JMXServiceURL getLocalConnectorAddress ( Process p , boolean startAgent ) { return getLocalConnectorAddress ( Integer . toString ( getPid ( p ) ) , startAgent ) ; }
Returns the JMX connector address of a child process.

@param p          the process to which to connect
@param startAgent whether to installed the JMX agent in the target process if not already in place
@return a {@link JMXServiceURL} to the process's MBean server