Added RepresentationToModel and move some code from managers to it
Work in progress