class FlowLogDBService implements FlowLogService {

    public Long getResourceIdByCrnOrName(String resource) {
        if (Crn.isCrn(resource)) {
            return resourceIdProvider.getResourceIdByResourceCrn(resource);
        }
        return resourceIdProvider.getResourceIdByResourceName(resource);
    }

}