public Object create(Object o) throws easyJ.common.EasyJException {
Session session = null;
try {
session = SessionFactory.openSession();
Class clazz = o.getClass();
o = session.create(o);
String primaryKeyName = BeanUtil.getPrimaryKeyName(o.getClass());
Object primaryKeyValue = BeanUtil.getPrimaryKeyValue(o);
String[] subClassProperties = BeanUtil.getSubClassProperties(clazz);
for (int i = 0; i < subClassProperties.length; i++) {
String property = subClassProperties[i];