container/resource/src/main/java/org/mobicents/slee/resource/SleeEndpointImpl.java
private void checkStartActivityParameters(ActivityHandle handle,
			Object activity) throws NullPointerException, IllegalStateException {

		// check args
		if (handle == null) {
			throw new NullPointerException("null handle");
		}
		if (activity == null) {
			throw new NullPointerException("null activity");
		}
		// check ra state
		if (raEntity.getResourceAdaptorObject().getState() != ResourceAdaptorObjectState.ACTIVE) {
			throw new IllegalStateException("ra is in state "
					+ raEntity.getResourceAdaptorObject().getState());
		}
	}
private void checkStartActivityParameters(ActivityHandle handle,
			Object activity) throws NullPointerException, IllegalStateException {

		// check args
		if (handle == null) {
			throw new NullPointerException("null handle");
		}
		if (activity == null) {
			throw new NullPointerException("null activity");
		}
		// check ra state
		if (raEntity.getResourceAdaptorObject().getState() != ResourceAdaptorObjectState.ACTIVE) {
			throw new IllegalStateException("ra is in state "
					+ raEntity.getResourceAdaptorObject().getState());
		}
	}
Checks the parameters of startActivity* methods

@param handle
@param activity
@throws NullPointerException
@throws IllegalStateException