added getDoc and getMiddlewares functions in phrase model
added getDoc and getMiddlewares functions in phrase model

Change-Id: I6505932b638466c1eed3d406bea3e6d196438719

rafinskipg/composr-core,corbel-platform/composr-core