if (list == null || (!Arrays.asList(list).contains(registryVersion))){
throw new RegistryAPIVersionIncompatibleException("Incompatible registry versions. Please check whether you updated the API and Registry " +
"versions.");
}
if (!ResourceUtils.isGatewayExist(getGateway().getGatewayName())){
throw new GatewayNotRegisteredException(getGateway().getGatewayName());
}
}