public void addDeepMapping(String fromName, String toName)
{
Class from = ReflectUtil.loadClass(fromName);
if (from == null)
{
throw new ReflectException(MsgFormat.format("Mapped class $0 for class mapping not found.", fromName));
}
Class to = ReflectUtil.loadClass(toName);
if (to == null)
{
throw new ReflectException(MsgFormat.format("Result class $0 for class mapping not found.", toName));
}
registry.registerByClass(from, to);
}