initializeAgentDebugCommands(instanceDefinition);
metainfo = getApplicationMetainfo(fileSystem, appDef);
if (metainfo == null || metainfo.getApplication() == null) {
log.error("metainfo.xml is unavailable or malformed at {}.", appDef);
throw new SliderException("metainfo.xml is required in app package.");
}
commandOrder = new ComponentCommandOrder(metainfo.getApplication().getCommandOrder());
monitor = new HeartbeatMonitor(this, getHeartbeatMonitorInterval());
monitor.start();