factory method pattern

Change-Id: If20d8e28c04426d907843af8044316dccdf19263
Signed-off-by: Ranjitha Balaraman <ranjitha.balaraman@sap.com>