*/
public String createMBean(final String target, final Map<String, String> params, final Map<String, String> attributes) throws CustomMBeanException {
boolean mbeanDefinitionCreated = false;
try {
final Target t = TargetBuilder.INSTANCE.createTarget(target, vTargets, target, this.acc);
final TargetType pType = t.getType();
final String newTarget = t.getName();
//note: mutates the passed params for "NAME_KEY"
mbeanDefinitionCreated = createMBeanDefinitionIfAbsent(newTarget, params, attributes);
final String name = params.get(CustomMBeanConstants.NAME_KEY);
if (TargetType.DOMAIN.equals((pType))) {