Sample sample = Functions.newLocalInstance(Sample.class);
sample.setName("Sample 1");
Person jason = Functions.newLocalInstance(Person.class);
jason.setName("Jason");
Gender jasonGender = Functions.newLocalInstance(Gender.class);
jasonGender.setName("Male");
jasonGender.setType(Gender.TYPE_MASCULINE);
jason.setGender(jasonGender);
jason.setAge(40);
jason.setSample(sample);
Person nancy = Functions.newLocalInstance(Person.class);
nancy.setName("Nancy");
Gender nancyGender = Functions.newLocalInstance(Gender.class);
nancyGender.setName("Female");
nancyGender.setType(Gender.TYPE_FEMININE);
nancy.setGender(nancyGender);
nancy.setSample(sample);
nancy.setAge(34);
jason.setSpouse(nancy);