framework/application/examples/src/main/java/org/ldp4j/example/AbstractPersonContainerHandler.java
@Override
	public final ResourceSnapshot create(ContainerSnapshot container, DataSet representation, WriteSession session) {
		Name<?> name=
			NamingScheme.
				getDefault().
					name(id.incrementAndGet());

		DataSetHelper helper=
					DataSetUtils.newHelper(representation);

		ManagedIndividual individual =
			helper.
				replace(
					DataSetHelper.SELF,
					ManagedIndividualId.createId(name,PersonHandler.ID),
					ManagedIndividual.class);

		individual.
			addValue(
				URI.create("http://www.example.org/vocab#creationDate"),
				Literals.of(new Date()).dateTime());
		try {
			this.handler.add(name, representation);
			ResourceSnapshot member = container.addMember(name);
			session.saveChanges();
			return member;
		} catch (Exception e) {
			this.handler.remove(name);
			throw new ApplicationRuntimeException("Could not create member",e);
		}
	}
@Override
	public final ResourceSnapshot create(ContainerSnapshot container, DataSet representation, WriteSession session) {
		Name<?> name=
			NamingScheme.
				getDefault().
					name(id.incrementAndGet());

		DataSetHelper helper=
					DataSetUtils.newHelper(representation);

		ManagedIndividual individual =
			helper.
				replace(
					DataSetHelper.SELF,
					ManagedIndividualId.createId(name,PersonHandler.ID),
					ManagedIndividual.class);

		individual.
			addValue(
				URI.create("http://www.example.org/vocab#creationDate"),
				Literals.of(new Date()).dateTime());
		try {
			this.handler.add(name, representation);
			ResourceSnapshot member = container.addMember(name);
			session.saveChanges();
			return member;
		} catch (Exception e) {
			this.handler.remove(name);
			throw new ApplicationRuntimeException("Could not create member",e);
		}
	}
{@inheritDoc}<br>

Create a new person resource.