Thread.currentThread().setContextClassLoader(contextClassLoader);
}
}
if (oldModelClassName.equals(WallEntryClp.class.getName())) {
WallEntryClp oldCplModel = (WallEntryClp)oldModel;
ClassLoader contextClassLoader = Thread.currentThread()
.getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(_classLoader);
try {
Class<?> newModelClass = Class.forName("com.liferay.socialnetworking.model.impl.WallEntryImpl",
true, _classLoader);
Object newModel = newModelClass.newInstance();
Method method0 = newModelClass.getMethod("setWallEntryId",
new Class[] { Long.TYPE });
Long value0 = new Long(oldCplModel.getWallEntryId());
method0.invoke(newModel, value0);
Method method1 = newModelClass.getMethod("setGroupId",
new Class[] { Long.TYPE });
Long value1 = new Long(oldCplModel.getGroupId());
method1.invoke(newModel, value1);
Method method2 = newModelClass.getMethod("setCompanyId",
new Class[] { Long.TYPE });
Long value2 = new Long(oldCplModel.getCompanyId());
method2.invoke(newModel, value2);
Method method3 = newModelClass.getMethod("setUserId",
new Class[] { Long.TYPE });
Long value3 = new Long(oldCplModel.getUserId());
method3.invoke(newModel, value3);
Method method4 = newModelClass.getMethod("setUserName",
new Class[] { String.class });
String value4 = oldCplModel.getUserName();
method4.invoke(newModel, value4);
Method method5 = newModelClass.getMethod("setCreateDate",
new Class[] { Date.class });
Date value5 = oldCplModel.getCreateDate();
method5.invoke(newModel, value5);
Method method6 = newModelClass.getMethod("setModifiedDate",
new Class[] { Date.class });
Date value6 = oldCplModel.getModifiedDate();
method6.invoke(newModel, value6);
Method method7 = newModelClass.getMethod("setComments",
new Class[] { String.class });
String value7 = oldCplModel.getComments();
method7.invoke(newModel, value7);
Method method8 = newModelClass.getMethod("setPostFromIpAddress",
new Class[] { String.class });
String value8 = oldCplModel.getPostFromIpAddress();
method8.invoke(newModel, value8);
return newModel;
}