protected boolean isStoppable(){
  return (isRunning() && getLocator() != null);
}

protected boolean isStoppable ( ) { return ( isRunning ( ) && getLocator ( ) != null ) ; }
determines whether the locator can be stopped in - process , such as when a locator is embedded in an application and the locatorlauncher api is being used .
