protected AbstractAutoMapper(final String className, final String parameterBase, final FieldMappingLookup lookup,
final ObjectMappingLookup objectMapperLookup) {
specification = IsisContext.getSpecificationLoader().loadSpecification(className);
if (specification.getProperties() == null || specification.getProperties().size() == 0) {
throw new SqlObjectStoreException(specification.getFullIdentifier() + " has no fields: " + specification);
}
setUpFieldMappers(lookup, objectMapperLookup, className, parameterBase);
}