@Override
	public ResourceSnapshot create(ContainerSnapshot container, DataSet representation, WriteSession session) {
		NameProvider nameProvider = nameProvider(container.name());
		Name<?> nextName = nameProvider.nextMemberName();
		try {
			bookHandler().add(nextName,representation);
			ResourceSnapshot newMember = container.addMember(nextName);
			session.saveChanges();
			return newMember;
		} catch (Exception e) {
			bookHandler().remove(nextName);
			throw new ApplicationRuntimeException("Could not create member",e);
		}
	}
@Override
	public ResourceSnapshot create(ContainerSnapshot container, DataSet representation, WriteSession session) {
		NameProvider nameProvider = nameProvider(container.name());
		Name<?> nextName = nameProvider.nextMemberName();
		try {
			bookHandler().add(nextName,representation);
			ResourceSnapshot newMember = container.addMember(nextName);
			session.saveChanges();
			return newMember;
		} catch (Exception e) {
			bookHandler().remove(nextName);
			throw new ApplicationRuntimeException("Could not create member",e);
		}
	}
@ Override public ResourceSnapshot create ( ContainerSnapshot container , DataSet representation , WriteSession session ) { NameProvider nameProvider = nameProvider ( container . name ( ) ) ; Name < ? > nextName = nameProvider . nextMemberName ( ) ; try { bookHandler ( ) . add ( nextName , representation ) ; ResourceSnapshot newMember = container . addMember ( nextName ) ; session . saveChanges ( ) ; return newMember ; } catch ( Exception e ) { bookHandler ( ) . remove ( nextName ) ; throw new ApplicationRuntimeException ( "Could not create member" , e ) ; } }
{@inheritDoc}<br>

Create a new book resource.
{ @inheritDoc } <br >