@Override public void execute(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (getComponent() != null) { getOwner().startNestedComponent(getComponent(), monitor, getErrorMessage(), isRequire()); } else { throw new SiteWhereException("Attempting to start component '" + getName() + "' but component is null."); } }
@Override public void execute(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (getComponent() != null) { try { getOwner().startNestedComponent(getComponent(), monitor, isRequire()); } catch (SiteWhereException t) { throw t; } catch (Throwable t) { throw new SiteWhereException("Unable to start " + getComponent().getComponentName(), t); } } else { throw new SiteWhereException( "Attempting to start component '" + getComponent().getComponentName() + "' but component is null."); } }