class ZTSImpl implements KeyStore, ZTSHandler {

    ServiceIdentityList generateServiceIdentityList(final String domainName, List<com.yahoo.athenz.zms.ServiceIdentity> services) {

        ServiceIdentityList result = new ServiceIdentityList();
        if (services != null) {

            List<String> names = new ArrayList<>();
            final String prefix = domainName + ".";

            for (com.yahoo.athenz.zms.ServiceIdentity service : services) {

                final String fullName = service.getName();
                if (fullName.startsWith(prefix)) {
                    names.add(fullName.substring(prefix.length()));
                }
            }
            result.setNames(names);
        }
        return result;
    }

    public  ZTSImpl();
    public  ZTSImpl(CloudStore implCloudStore, DataStore implDataStore);

}