class ServiceResourceService {

    public ServiceResource[] getByNodeTypes(String nodeType, String nodeTypeVersion) {
        return alienDAO.buildQuery(ServiceResource.class)
                .setFilters(fromKeyValueCouples("nodeInstance.nodeTemplate.type", nodeType, "nodeInstance.typeVersion", nodeTypeVersion)).prepareSearch()
                .search(0, Integer.MAX_VALUE).getData();
    }

}