Here are two sample ways to instantiate application module using Bindingcontex Class and Configuration Class.
(1)Using Bindingcontex class: (Have to give DataControler name and AppModuleImpl class )
oracle.adf.model.BindingContext bc = oracle.adf.model.BindingContext.getCurrent();
JUApplication japp = (JUApplication)bc.getCurrentBindingsEntry().get("AppModuleDataControl");
AppModuleImpl am = (AppModuleImpl)japp.getApplicationModule();
(2)Using Configuration class (Have to give path for AppModule and name "AppModuleLocal")
AppModuleImpl am = (AppModuleImpl)oracle.jbo.client.Configuration.createRootApplicationModule("model.am.AppModule",
"AppModuleLocal");