@Override
	public MachineConfigurator machineConfigurator( TargetHandlerParameters parameters, String machineId )
	throws TargetException {

		try {
			Properties userData = UserDataHelpers.writeUserDataAsProperties(
						parameters.getMessagingProperties(),
						parameters.getDomain(),
						parameters.getApplicationName(),
						parameters.getScopedInstancePath());

			String rootInstanceName = InstanceHelpers.findRootInstancePath( parameters.getScopedInstancePath());
			return new OcciMachineConfigurator(
					machineId,
					parameters.getTargetProperties(),
					userData,
					rootInstanceName,
					parameters.getScopedInstance());

		} catch( IOException e ) {
			throw new TargetException( e );
		}
	}
@ Override public MachineConfigurator machineConfigurator ( TargetHandlerParameters parameters , String machineId ) throws TargetException { try { Properties userData = UserDataHelpers . writeUserDataAsProperties ( parameters . getMessagingProperties ( ) , parameters . getDomain ( ) , parameters . getApplicationName ( ) , parameters . getScopedInstancePath ( ) ) ; String rootInstanceName = InstanceHelpers . findRootInstancePath ( parameters . getScopedInstancePath ( ) ) ; return new OcciMachineConfigurator ( machineId , parameters . getTargetProperties ( ) , userData , rootInstanceName , parameters . getScopedInstance ( ) ) ; } catch ( IOException e ) { throw new TargetException ( e ) ; } }
/*
(non-Javadoc)
@see net.roboconf.target.api.AbstractThreadedTargetHandler#machineConfigurator(
net.roboconf.target.api.TargetHandlerParameters, java.lang.String)