protected int startClient(Artifact configuration, String[] args) throws Exception {
Jsr77Naming naming = new Jsr77Naming();
//this kinda sucks, but resource adapter modules deployed on the client insist on having a
//J2EEApplication name component
AbstractName baseName = naming.createRootName(configuration, configuration.toString(), "J2EEApplication");
AbstractNameQuery baseNameQuery = new AbstractNameQuery(baseName);
invokeMainGBean(Collections.singletonList(configuration), baseNameQuery, "main", args);
return 0;
}