container/common/src/main/java/org/mobicents/slee/container/management/jmx/DeploymentMBeanImpl.java
public DeployableUnitDescriptor getDescriptor(
			DeployableUnitID deployableUnitID) throws NullPointerException,
			UnrecognizedDeployableUnitException, ManagementException {

		if (deployableUnitID == null)
			throw new NullPointerException(
					"deployableUnitID should not be null");

		DeployableUnitDescriptor dud = null;
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("getDescriptor " + deployableUnitID);
			}
			DeployableUnit du = getSleeContainer()
					.getDeployableUnitManagement().getDeployableUnit(
							deployableUnitID);
			if (du != null) {
				dud = du.getSpecsDeployableUnitDescriptor();
			}
		} catch (Throwable ex) {
			throw new ManagementException(ex.getMessage(), ex);
		}

		if (dud == null) {
			throw new UnrecognizedDeployableUnitException(
					"unrecognized deployable unit " + deployableUnitID);
		} else {
			return dud;
		}
	}
public DeployableUnitDescriptor getDescriptor(
			DeployableUnitID deployableUnitID) throws NullPointerException,
			UnrecognizedDeployableUnitException, ManagementException {

		if (deployableUnitID == null)
			throw new NullPointerException(
					"deployableUnitID should not be null");

		DeployableUnitDescriptor dud = null;
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("getDescriptor " + deployableUnitID);
			}
			DeployableUnit du = getSleeContainer()
					.getDeployableUnitManagement().getDeployableUnit(
							deployableUnitID);
			if (du != null) {
				dud = du.getSpecsDeployableUnitDescriptor();
			}
		} catch (Throwable ex) {
			throw new ManagementException(ex.getMessage(), ex);
		}

		if (dud == null) {
			throw new UnrecognizedDeployableUnitException(
					"unrecognized deployable unit " + deployableUnitID);
		} else {
			return dud;
		}
	}
public DeployableUnitDescriptor getDescriptor ( DeployableUnitID deployableUnitID ) throws NullPointerException , UnrecognizedDeployableUnitException , ManagementException { if ( deployableUnitID == null ) throw new NullPointerException ( "deployableUnitID should not be null" ) ; DeployableUnitDescriptor dud = null ; try { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "getDescriptor " + deployableUnitID ) ; } DeployableUnit du = getSleeContainer ( ) . getDeployableUnitManagement ( ) . getDeployableUnit ( deployableUnitID ) ; if ( du != null ) { dud = du . getSpecsDeployableUnitDescriptor ( ) ; } } catch ( Throwable ex ) { throw new ManagementException ( ex . getMessage ( ) , ex ) ; } if ( dud == null ) { throw new UnrecognizedDeployableUnitException ( "unrecognized deployable unit " + deployableUnitID ) ; } else { return dud ; } }
/*
(non-Javadoc)

@see javax.slee.management.DeploymentMBean#getDescriptor(javax.slee.management.DeployableUnitID)
/ * ( non - Javadoc )