Added new methods used for manipulating entities.
Modified the "isManaged" method to correctly determine whether the current instance is managed or not.