class Provisioner {

    List<Provision> parseProvisions(List<ProvisionPlaintext> provisionPlaintexts) {

        List<Provision> provisions = new ArrayList<>();
        ObjectMapper mapper = new ObjectMapper();

        if (provisionPlaintexts != null) {
            for (ProvisionPlaintext provisionPlaintext : provisionPlaintexts) {
                Provision provision = new Provision();
                provision.setProvisonPath(provisionPlaintext.getProvisionPath());
                try {
                    provision.setRepositoryProvision(
                            mapper.readValue(provisionPlaintext.getRepositoryProvision(), RepositoryProvision.class));
                    provisions.add(provision);
                } catch (IOException e) {
                    Utils.debugLog(TAG, "could not parse repository provision", e);
                }
            }
        }

        return provisions;
    }

    protected  Provisioner();

}