* @param tag
* @param applicationConfiguration
* @return
*/
public void ensureConnectorLoaded(int tag, ApplicationConfiguration conf) {
ConnectorBundleLoader loader = ConnectorBundleLoader.get();
String bundleName = null;
Integer t = tag;
do {
String serverSideClassName = conf.getServerSideClassNameForTag(t);
bundleName = loader.getBundleForIdentifier(serverSideClassName);
t = conf.getParentTag(t);
} while (bundleName == null && t != null);
if (bundleName != null && !loader.isBundleLoaded(bundleName)) {
ApplicationConfiguration.startDependencyLoading();
loader.loadBundle(bundleName, new BundleLoadCallback() {
@Override
public void loaded() {
ApplicationConfiguration.endDependencyLoading();
}