Even if it knows that my bean class is there.... it shouldn't access my class because both are in different packages.
According to
java rules, only public classes can be accessed from other packages. For this reason only we will specify the class which has main() method (it should be invoked by JVM) as public. Right?