// if it is a remote installation get the module from webservice,
// other case the obx file is passed as an InputStream
try {
final WebServiceImplServiceLocator loc = new WebServiceImplServiceLocator();
final WebServiceImpl ws = loc.getWebService();
module = ws.moduleDetail(recordId);
} catch (final Exception e) {
log4j.error(e);
}
} else {
discard[4] = "core";