Returns the material of the specified subentity.
eOk if successful or an appropriate error code in other case.