// Let's try to auto-discover if this Connector is using a shared executor for its thread pool.
// If it is, let's set the plugin config property automatically so we can collect the proper metrics.
// Note that if the "executorName" attribute on the Connector MBean is "Internal", that means it is NOT shared.
String connectorON = pluginConfiguration.getSimpleValue(TomcatConnectorComponent.OBJECT_NAME_PROP, null);
if (connectorON != null) {
EmsBean connectorBean = connection.getBean(connectorON);
EmsAttribute executorNameAttrib = connectorBean.getAttribute("executorName");
if (executorNameAttrib != null) {
Object executorNameValue = executorNameAttrib.getValue();
if (executorNameValue != null) {
String executorName = executorNameValue.toString();
if (!executorName.isEmpty() && !executorName.equalsIgnoreCase("Internal")) {