container/activities/src/main/java/org/mobicents/slee/container/management/jmx/ActivityManagementMBeanImpl.java
public void endActivity(ActivityContextHandle ach) throws ManagementException {

		// Again this is tx method
		logger.info("Trying to stop null activity[" + ach + "]!!");
		ActivityContext ac = acFactory.getActivityContext(ach);
		if (ac == null) {
			logger.debug("There is no ac associated with given acID["
						+ ach + "]!!");
			throw new ManagementException("Can not find AC for given ID["
					+ ach + "], try again!!!");
		}
		if (ac.getActivityContextHandle().getActivityType() == ActivityType.NULL) {
			logger.debug("Scheduling activity end for acID[" + ach
						+ "]");
			NullActivity nullActivity = (NullActivity) ac.getActivityContextHandle().getActivityObject();
			if (nullActivity != null) {
				nullActivity.endActivity();
			}
		} else {
			logger.debug("AC is not null activity context");
			throw new IllegalArgumentException("Given ID[" + ach
					+ "] does not point to NullActivity");
		}		
	}
public void endActivity(ActivityContextHandle ach) throws ManagementException {

		// Again this is tx method
		logger.info("Trying to stop null activity[" + ach + "]!!");
		ActivityContext ac = acFactory.getActivityContext(ach);
		if (ac == null) {
			logger.debug("There is no ac associated with given acID["
						+ ach + "]!!");
			throw new ManagementException("Can not find AC for given ID["
					+ ach + "], try again!!!");
		}
		if (ac.getActivityContextHandle().getActivityType() == ActivityType.NULL) {
			logger.debug("Scheduling activity end for acID[" + ach
						+ "]");
			NullActivity nullActivity = (NullActivity) ac.getActivityContextHandle().getActivityObject();
			if (nullActivity != null) {
				nullActivity.endActivity();
			}
		} else {
			logger.debug("AC is not null activity context");
			throw new IllegalArgumentException("Given ID[" + ach
					+ "] does not point to NullActivity");
		}		
	}
public void endActivity ( ActivityContextHandle ach ) throws ManagementException { // Again this is tx method
 logger . info ( "Trying to stop null activity[" + ach + "]!!" ) ; ActivityContext ac = acFactory . getActivityContext ( ach ) ; if ( ac == null ) { logger . debug ( "There is no ac associated with given acID[" + ach + "]!!" ) ; throw new ManagementException ( "Can not find AC for given ID[" + ach + "], try again!!!" ) ; } if ( ac . getActivityContextHandle ( ) . getActivityType ( ) == ActivityType . NULL ) { logger . debug ( "Scheduling activity end for acID[" + ach + "]" ) ; NullActivity nullActivity = ( NullActivity ) ac . getActivityContextHandle ( ) . getActivityObject ( ) ; if ( nullActivity != null ) { nullActivity . endActivity ( ) ; } } else { logger . debug ( "AC is not null activity context" ) ; throw new IllegalArgumentException ( "Given ID[" + ach + "] does not point to NullActivity" ) ; } }
--- OPERATIONS
--- OPERATIONS