if (srcObj == null || srcObjClass == null) {
throw new IllegalArgumentException("Source Object and Source Object Class params"
+ " should have been provided by the Dozer mapping engine");
}
InsideTestObjectPrime result = new InsideTestObjectPrime();
result.setLabelPrime(((InsideTestObject) srcObj).getLabel());
// Setting the following field so that we have something
// to assert on that indicates it was created by the factory
setCreatedByFactoryName(result, SampleCustomBeanFactory2.class.getName());
return result;