{
return;
}
// Check if the Destination is started
Destination destination = getDestination();
if (!destination.isStarted())
{
if (Log.isWarn())
{
Log.getLogger(getLogCategory()).warn("Adapter with id '{0}' cannot be started" +
" when its Destination with id '{1}' is not started.",
new Object[]{getId(), destination.getId()});
}
return;
}
// Set up management
if (isManaged() && destination.isManaged())
{
setupAdapterControl(destination);
DestinationControl controller = (DestinationControl)destination.getControl();
if (getControl() != null)
controller.setAdapter(getControl().getObjectName());
}