question: public ObjectName createDistributionLocator ( String host , int port , String workingDirectory , String productDirectory , String remoteCommand ) throws MalformedObjectNameException { try { DistributionLocatorJmxImpl locator = ( DistributionLocatorJmxImpl ) addDistributionLocator ( ) ; DistributionLocatorConfig config = locator . getConfig ( ) ; config . setHost ( host ) ; config . setPort ( port ) ; config . setWorkingDirectory ( workingDirectory ) ; config . setProductDirectory ( productDirectory ) ; config . setRemoteCommand ( remoteCommand ) ; return new ObjectName ( locator . getMBeanName ( ) ) ; } catch ( RuntimeException e ) { logger . warn ( e . getMessage ( ) , e ) ; throw e ; } catch ( VirtualMachineError err ) { SystemFailure . initiateFailure ( err ) ; throw err ; } catch ( Error e ) { SystemFailure . checkFailure ( ) ; logger . error ( e . getMessage ( ) , e ) ; throw e ; } }
target:  Creates a new DistributionLocator for this system and registers an MBean for managing it. <p> If the Locator already exists, then this will simply register an MBean for it.