removed function getEntityTypeName
added function lock()
added function locked()