}
}
protected <O extends DynamicObject> String getTableNameForDynamicObject(Class<O> cls) {
DynamicObject dynamicObject;
PersistenceCapable persistenceCapable = cls.getAnnotation(PersistenceCapable.class);
String tableName = null;
try {
dynamicObject = cls.newInstance();
tableName = dynamicObject.table();
if (tableName == null && persistenceCapable != null) {
tableName = persistenceCapable.table();
}
} catch (InstantiationException e) {
throw new ClusterJUserException(local.message("ERR_Dynamic_Object_Instantiation", cls.getName()), e);
} catch (IllegalAccessException e) {
throw new ClusterJUserException(local.message("ERR_Dynamic_Object_Illegal_Access", cls.getName()), e);