Add FactoryBean for VirtualMachineEntity to help implement dyanmic injection
rat: Fix license on newly added files

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>