Factory Pattern in Java: Creating Objects with Ease