// Do the install directly if we have a running management op
// https://issues.jboss.org/browse/AS7-5642
if (OperationAssociation.INSTANCE.getAssociation() != null) {
LOGGER.warnCannotDeployBundleFromManagementOperation(dep);
BundleManager bundleManager = injectedBundleManager.getValue();
bundleManager.installBundle(dep, null, null);
} else {
LOGGER.debugf("Install deployment: %s", dep);
String runtimeName = getRuntimeName(dep);
putDeployment(runtimeName, dep);
try {