container/resource/src/main/java/org/mobicents/slee/resource/ResourceAdaptorEntityImpl.java
ActivityHandle derreferActivityHandle(ActivityHandle handle) {
		ActivityHandle ah = null;
		if (resourceManagement.getHandleReferenceFactory() != null && handle.getClass() == ActivityHandleReference.class) {
			ActivityHandleReference ahReference = (ActivityHandleReference) handle;
			ah = resourceManagement.getHandleReferenceFactory().getActivityHandle(ahReference);
		}
		else {
			ah = handle;
		}
		return ah;
	}
ActivityHandle derreferActivityHandle(ActivityHandle handle) {
		ActivityHandle ah = null;
		if (resourceManagement.getHandleReferenceFactory() != null && handle.getClass() == ActivityHandleReference.class) {
			ActivityHandleReference ahReference = (ActivityHandleReference) handle;
			ah = resourceManagement.getHandleReferenceFactory().getActivityHandle(ahReference);
		}
		else {
			ah = handle;
		}
		return ah;
	}
if it is a handle reference it gets the referred handle
@param handle
@return