package eu.dnetlib.utils;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

public class RemoteInformationServiceCondition implements Condition {

	@Override
	public boolean matches(final ConditionContext context, final AnnotatedTypeMetadata metadata) {
		try {
			Class.forName("eu.dnetlib.enabling.is.tools.ISBulkResourceImporter");
			return false;
		} catch (final ClassNotFoundException e) {
			return true;
		}
	}

}
