// Read the directory attribute. This is where the sample
// CRUD implementation will persist resources.
String directory = reader.getAttributeValue(null, "directory");
// Create an initialize the CRUD implementation model
CRUDImplementation implementation = crudFactory.createCRUDImplementation();
implementation.setDirectory(directory);
// Skip to end element
while (reader.hasNext()) {
if (reader.next() == END_ELEMENT && IMPLEMENTATION_CRUD.equals(reader.getName())) {
break;