// Path: noark-extraction-validator/src/main/java/com/documaster/validator/exceptions/ConversionException.java
// public class ConversionException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public ConversionException(String message) {
// 
// 		super(message);
// 	}
// 
// 	public ConversionException(Throwable throwable) {
// 
// 		super(throwable);
// 	}
// 
// 	public ConversionException(String message, Throwable throwable) {
// 
// 		super(message, throwable);
// 	}
// }


import java.util.HashMap;
import java.util.Map;
import com.documaster.validator.exceptions.ConversionException;
import org.apache.commons.lang.Validate;
	/**
	 * Returns the name of the reference fields for this item definition.
	 */
	public String getReferenceName() {

		return Field.REFERENCE_PREFIX + name;
	}

	Integer getNextId() {

		return ++recordCount;
	}

	private void createInternalFields() {

		getFields().put(Field.TYPE, new Field(Field.TYPE, Field.FieldType.getFromJavaType(String.class)));
		getFields()
				.put(Field.INTERNAL_ID, new Field(Field.INTERNAL_ID, Field.FieldType.getFromJavaType(Integer.class)));
		getFields().put(
				Field.INTERNAL_PARENT_ID,
				new Field(Field.INTERNAL_PARENT_ID, Field.FieldType.getFromJavaType(Integer.class)));
	}

	private static String generateGroupName(Class<?> cls) {

		Class<?> rootCls = getRootClassOf(cls);

		int lastOccurrenceOfDot = rootCls.getPackage().getName().lastIndexOf(".");

		if (lastOccurrenceOfDot == -1) {
// Path: noark-extraction-validator/src/main/java/com/documaster/validator/exceptions/ConversionException.java
// public class ConversionException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public ConversionException(String message) {
// 
// 		super(message);
// 	}
// 
// 	public ConversionException(Throwable throwable) {
// 
// 		super(throwable);
// 	}
// 
// 	public ConversionException(String message, Throwable throwable) {
// 
// 		super(message, throwable);
// 	}
// }


// Path: noark-extraction-validator/src/main/java/com/documaster/validator/storage/model/ItemDef.java
import java.util.HashMap;
import java.util.Map;
import com.documaster.validator.exceptions.ConversionException;
import org.apache.commons.lang.Validate;

	/**
	 * Returns the name of the reference fields for this item definition.
	 */
	public String getReferenceName() {

		return Field.REFERENCE_PREFIX + name;
	}

	Integer getNextId() {

		return ++recordCount;
	}

	private void createInternalFields() {

		getFields().put(Field.TYPE, new Field(Field.TYPE, Field.FieldType.getFromJavaType(String.class)));
		getFields()
				.put(Field.INTERNAL_ID, new Field(Field.INTERNAL_ID, Field.FieldType.getFromJavaType(Integer.class)));
		getFields().put(
				Field.INTERNAL_PARENT_ID,
				new Field(Field.INTERNAL_PARENT_ID, Field.FieldType.getFromJavaType(Integer.class)));
	}

	private static String generateGroupName(Class<?> cls) {

		Class<?> rootCls = getRootClassOf(cls);

		int lastOccurrenceOfDot = rootCls.getPackage().getName().lastIndexOf(".");

		if (lastOccurrenceOfDot == -1) {
			throw new ConversionException("Cannot build a group name for a class without a package: "