added method for getting as type.
updated javadoc configuration.
updated component instantiation.