Made sure to convert the HashMap into an Entity object.