protected Dairy createDairy(String dairyNumber, String licenseeName) {
    Session session;
    Transaction transaction;

    Dairy dairy;
    Location location;

    session = getOrCreateSession();
    transaction = session.beginTransaction();

    location = ModelFactory.eINSTANCE.createLocation();
    location.setDescriptiveLocation(null);
    location.setMapLocation(null);
    location.setPostalLocation(null);
    location.setStatutoryLocation(null);
    session.persist(location);

    dairy = DairyFactory.eINSTANCE.createDairy();
    dairy.setRegistrationNumber(dairyNumber);
    dairy.setLegalName(licenseeName);
    // dairy.setCompanyId(getDairyId());

    dairy.setDescription("<description>");
    dairy.setCompanyName("<company common name>");
    dairy.setPhoneNumber("+254 0072 0000 0000");
    dairy.setEstablishedDate(new Date(1, 1, 1975));

    dairy.setLocation(location);
    session.persist(dairy);

    transaction.commit();

    return dairy;
  }
  private void initSampleDairy() {
    DAIRY = DairyFactory.eINSTANCE.createDairy();
    DAIRY.setCompanyName("test");
    DAIRY.setDescription("");
    DAIRY.setRegistrationNumber("");
    DAIRY.setLocation(DairyUtil.createLocation(null, null, null));
    DAIRY.setPhoneNumber("");

    DEFAULT_DRIVER =
        DairyUtil.createEmployee(
            null, "Driver", new Date(100000), "Strom", "", "Thurmond", "", null, null);
    DAIRY.getEmployees().add(DEFAULT_DRIVER);
  }