* </pre>
*/
@NotNull public ManagedObjectManager createManagedObjectManager(final Stub stub) {
String rootName = stub.requestContext.getEndpointAddress().toString();
final ManagedClientAssertion assertion =
ManagedClientAssertion.getAssertion(stub.getPortInfo());
if (assertion != null) {
final String id = assertion.getId();
if (id != null) {
rootName = id;
}
if (assertion.monitoringAttribute() == Setting.OFF) {
return disabled("This client", rootName);
} else if (assertion.monitoringAttribute() == Setting.ON &&
clientMonitoring != Setting.OFF) {
return createMOMLoop(rootName, 0);
}
}