public static boolean addVSensorInstance ( VirtualSensor sensorPool ) {
try {
logger.info("Testing the pool for :" + sensorPool.getConfig( ).getName( ));
sensorPool.returnVS( sensorPool.borrowVS( ) );
} catch ( Exception e ) {
<BUG>logger.error( e.getMessage( ) , e );</BUG>
sensorPool.closePool( );
<BUG>logger.error( "GSN can't load the virtual sensor specified at " + sensorPool.getConfig( ).getFileName( ) + " because the initialization of the virtual sensor failed (see above exception)." );

logger.error( "Please fix the following error" );</BUG>
return false;

public static boolean addVSensorInstance ( VirtualSensor sensorPool ) {
try {
logger.info("Testing the pool for :" + sensorPool.getConfig( ).getName( ));
sensorPool.returnVS( sensorPool.borrowVS( ) );
} catch ( Exception e ) {
sensorPool.closePool( );
logger.error( "GSN can't load the virtual sensor specified at " + sensorPool.getConfig( ).getFileName( ) + " because the initialization of the virtual sensor failed. "+e.getMessage( ) , e );
return false;
