<CONTEXT>.toString( ) );logger.error( new StringBuilder( ).append( "Please check the file and try again" ).toString( ) );</BUG>continue ;}list.add( configuration );<extra_id_0>continue ;}list.add( configuration );<BUG>} catch ( Exception e ) {logger.error( e.getMessage( ) , e );logger.error( new StringBuilder( ).append( "Adding the virtual sensor specified in " ).append( file ).append( " failed." ).toString( ) );</BUG>}}</CONTEXT>
try {VsConf vsConf=VsConf.load(file);configuration=BeansInitializer.vsensor(vsConf);configuration.setFileName( file );if ( !configuration.validate( ) ) {logger.error("Adding the virtual sensor specified in "+file+" failed because of one or more problems in configuration file.");logger.info("Please check the file and try again");logger.error("Adding the virtual sensor specified in "+file+" failed."+ e.getMessage());