*/
public Mapper getMapper(String name) throws MapperException {
if (!configured || !ready)
throw new MapperConfigurationException(
"Manager is not ready to operate.");
Mapper mapper = (Mapper) mappers.get(name);
if (mapper == null)
throw new MapperConfigurationException("No mapper named " + name
+ " in this manager");
/* configure mapper through source */
Source src = (Source) mapperToSource.get(mapper.getName());
if (src == null)
throw new MapperConfigurationException(
"No source is associated with mapper " + name);
/* delegate preparation */
Mapper niou = src.create(name, environment);
return niou;
}