Creates a complex entity from name.
created complex entity if success, otherwise return empty pointer