}
private static Resource createResource(int index, long timestamp,
String uriClass, int numberOfResources) {
Resource resource = new Resource(uriClass + ":" + index);
resource.putValue(LOCATION_1, createRandomLocation());
resource.putValue(LOCATION_2, createRandomLocation());
resource.putValue(DATE_1, createRandomDate(365, timestamp));
resource.putValue(DATE_2, createRandomDate(180, timestamp));
resource.putValue(NUMBER_1, createRandomNumber(0, 10000));
resource.putValue(NUMBER_2, createRandomNumber(0, 100));
resource.putValue(NUMBER_3, createRandomNumber(-100, 100));
resource.putValue(TEXT_1, "text" + index);
resource.putValue(TEXT_2, createRandomText(10));
resource.putValue(TEXT_3, createRandomText(100));
resource.putValue(RESOURCE_1,
createRandomUriList(uriClass, numberOfResources));
return resource;
}