class RequiredDataAdvice implements MethodBeforeAdvice {

	protected static boolean isOpenmrsObjectCollection(Object arg) {
		
		if (arg instanceof Collection) {
			Collection<?> col = (Collection<?>) arg;
			return !col.isEmpty() && col.iterator().next() instanceof OpenmrsObject;
		}
		return false;
	}

}