Added createEntity() method to create new entity from array based on getEntityClass() return value.