properly exporting beans before storing them in the object field