T instance = newInstance(sliceResourceClass);
if (resource != null) {
instance = mapper.get(resource, instance);
}
if (InitializableModel.class.isAssignableFrom(sliceResourceClass)) {
InitializableModel initializableModel = (InitializableModel) instance;
initializableModel.afterCreated();
}
return instance;
}