Separated entity rendering to a separate static method renderEntityFromContext().