class DeploymentService {

    public boolean isArchiveDeployed(String archiveName, String archiveVersion) {
        return alienMonitorDao.buildQuery(DeploymentTopology.class).prepareSearch()
                .setFilters(fromKeyValueCouples("deployed", "true", "dependencies.name", archiveName, "dependencies.version", archiveVersion)).count() > 0;
    }

}