AccessController.checkAccess(
context.getServiceContext(), ACL_ADD_APPLICATIONS);
ConnectorForm connForm = (ConnectorForm)actionForm;
ApplicationType appType =
ApplicationTypes.getApplicationType(connForm.getType());
assert appType.getId().equals("connector"): "Invalid app type: " + connForm.getType();
ModuleConfig moduleConfig = appType.getModule();
MetaApplicationConfig metaAppConfig = moduleConfig.getMetaApplicationConfig();
request.setAttribute(RequestAttributes.META_APP_CONFIG, metaAppConfig);
if (connForm.getConnectorId() == null
|| connForm.getConnectorId().length() == 0